Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo wasm_bidngen to wasm_bindgen #2528

Merged
merged 1 commit into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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