Fix typo in wasm-bindgen doc page (#2963)

This commit is contained in:
Michael Jones 2022-12-20 13:41:58 +00:00 committed by GitHub
parent a6a442fbc8
commit 16df0150a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) ### [`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. 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 This type is a "handle" in the sense that whenever it is dropped it will invalidate the JS