Merge pull request #93 from jasondavies/readme

Fix indentation in README.
master
ashley williams 7 years ago committed by GitHub
commit 4bd93ccd9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      README.md

@ -57,20 +57,20 @@ if you want to publish packages, you'll also need an account on [npm] and have
2. add `wasm-bindgen` to your `Cargo.toml`: 2. add `wasm-bindgen` to your `Cargo.toml`:
```toml ```toml
[lib] [lib]
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
wasm-bindgen = "0.2" wasm-bindgen = "0.2"
``` ```
3. add this to the top of your `src/lib.rs`: 3. add this to the top of your `src/lib.rs`:
```rust ```rust
#![feature(proc_macro, wasm_import_module, wasm_custom_section)] #![feature(proc_macro, wasm_import_module, wasm_custom_section)]
extern crate wasm_bindgen; extern crate wasm_bindgen;
use wasm_bindgen::prelude::*; use wasm_bindgen::prelude::*;
``` ```
4. annotate your public functions with `#[wasm_bindgen]`, for example: 4. annotate your public functions with `#[wasm_bindgen]`, for example:

Loading…
Cancel
Save