Skip to content

Commit cb413ad

Browse files
authored
Fix typo wasm_bidngen to wasm_bindgen (#2528)
1 parent aa32f4a commit cb413ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/macro-support/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ fn import_enum(enum_: syn::ItemEnum, program: &mut ast::Program) -> Result<(), D
10971097
}
10981098
expr => bail_span!(
10991099
expr,
1100-
"enums with #[wasm_bidngen] cannot mix string and non-string values",
1100+
"enums with #[wasm_bindgen] cannot mix string and non-string values",
11011101
),
11021102
}
11031103
}
@@ -1191,7 +1191,7 @@ impl<'a> MacroParse<(&'a mut TokenStream, BindgenAttrs)> for syn::ItemEnum {
11911191
},
11921192
expr => bail_span!(
11931193
expr,
1194-
"enums with #[wasm_bidngen] may only have \
1194+
"enums with #[wasm_bindgen] may only have \
11951195
number literal values",
11961196
),
11971197
},

crates/macro/ui-tests/invalid-enums.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error: only C-Style enums allowed with #[wasm_bindgen]
1010
8 | D(u32),
1111
| ^^^^^
1212

13-
error: enums with #[wasm_bidngen] may only have number literal values
13+
error: enums with #[wasm_bindgen] may only have number literal values
1414
--> $DIR/invalid-enums.rs:13:9
1515
|
1616
13 | X = 1 + 3,

0 commit comments

Comments
 (0)