Skip to content

Commit

Permalink
Fix typo wasm_bidngen to wasm_bindgen (#2528)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluk authored Apr 15, 2021
1 parent aa32f4a commit cb413ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/macro-support/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ fn import_enum(enum_: syn::ItemEnum, program: &mut ast::Program) -> Result<(), D
}
expr => bail_span!(
expr,
"enums with #[wasm_bidngen] cannot mix string and non-string values",
"enums with #[wasm_bindgen] cannot mix string and non-string values",
),
}
}
Expand Down Expand Up @@ -1191,7 +1191,7 @@ impl<'a> MacroParse<(&'a mut TokenStream, BindgenAttrs)> for syn::ItemEnum {
},
expr => bail_span!(
expr,
"enums with #[wasm_bidngen] may only have \
"enums with #[wasm_bindgen] may only have \
number literal values",
),
},
Expand Down
2 changes: 1 addition & 1 deletion crates/macro/ui-tests/invalid-enums.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ error: only C-Style enums allowed with #[wasm_bindgen]
8 | D(u32),
| ^^^^^

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

0 comments on commit cb413ad

Please sign in to comment.