Skip to content

Commit

Permalink
Parenthesize array type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed Jul 12, 2021
1 parent 9f8cc5c commit 1303e3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/cli-support/src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ impl VectorKind {
VectorKind::F64 => "Float64Array".to_string(),
VectorKind::Externref => "any[]".to_string(),
VectorKind::NamedExternref(ref name) => {
let mut type_str = name.clone();
type_str.push_str("[]");
let mut type_str = "(".to_string();
type_str.push_str(name);
type_str.push_str(")[]");
type_str
}
}
Expand Down

0 comments on commit 1303e3c

Please sign in to comment.