Fix spelling in guides (#3109)

These are a few minor mistakes I noticed while going through the tutorial.
This commit is contained in:
Colin Woodbury 2023-03-05 02:34:42 +09:00 committed by GitHub
parent ffc2db0b5a
commit 48daf52986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -169,7 +169,7 @@ _[`JsCast` documentation](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindg
### [`Closure`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/closure/struct.Closure.html)
The `Closure` type provides a way to transfer Rust closures to JavaScript, the closures past to
The `Closure` type provides a way to transfer Rust closures to JavaScript, the closures passed to
JavaScript must have a `'static` lifetime for soundness reasons.
This type is a "handle" in the sense that whenever it is dropped it will invalidate the JS

View File

@ -171,7 +171,7 @@ _[`JsCast` documentation](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindg
### [`Closure`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/closure/struct.Closure.html)
The `Closure` type provides a way to transfer Rust closures to JavaScript, the closures past to
The `Closure` type provides a way to transfer Rust closures to JavaScript, the closures passed to
JavaScript must have a `'static` lifetime for soundness reasons.
This type is a "handle" in the sense that whenever it is dropped it will invalidate the JS

View File

@ -453,7 +453,7 @@ element returned by the `Iterator` with the `{ for ... }` syntax.
### Handling state
Remember the `use_state` used earlier? That is a special function, called a "hook". Hooks are used to "hook" into
lifecycle of a function component and perform actions. You can learn more about this hook, and others
the lifecycle of a function component and perform actions. You can learn more about this hook, and others
[here](concepts/function-components/pre-defined-hooks#use_state).
:::note

View File

@ -169,7 +169,7 @@ _[`JsCast` documentation](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindg
### [`Closure`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/closure/struct.Closure.html)
The `Closure` type provides a way to transfer Rust closures to JavaScript, the closures past to
The `Closure` type provides a way to transfer Rust closures to JavaScript, the closures passed to
JavaScript must have a `'static` lifetime for soundness reasons.
This type is a "handle" in the sense that whenever it is dropped it will invalidate the JS

View File

@ -464,7 +464,7 @@ element returned by the `Iterator` with a special `{ for ... }` syntax
### Handling state
Remember the `use_state` used earlier? That is a special function, called a "hook". Hooks are used to "hook" into
lifecycle of a function component and perform actions. You can learn more about this hook, and others
the lifecycle of a function component and perform actions. You can learn more about this hook, and others
[here](concepts/function-components/hooks/introduction.mdx#pre-defined-hooks).
:::note