Merge pull request #229 from anderspitman/patch-1

Update README.md
This commit is contained in:
Nick Fitzgerald 2018-06-07 10:06:46 -07:00 committed by GitHub
commit e90f0e816d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,8 +484,8 @@ impls, and foreign modules. Impls can only contain functions, and the attribute
cannot be attached to functions in an impl block or functions in a foreign
module. No lifetime parameters or type parameters are allowed on any of these
types. Foreign modules must have the `"C"` abi (or none listed). Free functions
with `#[wasm_bindgen]` might no have the `"C"` abi or none listed and also not
needed to annotate with the `#[no_mangle]` attribute.
with `#[wasm_bindgen]` might not have the `"C"` abi or none listed, and it's also not
necessary to annotate with the `#[no_mangle]` attribute.
All structs referenced through arguments to functions should be defined in the
macro itself. Arguments allowed implement the `WasmBoundary` trait, and examples