Fix code example in README

This won't compile if it isn't pub!

Fixes https://github.com/rustwasm/wasm-bindgen/issues/309
master
Steve Klabnik 7 years ago committed by GitHub
parent faed3912f3
commit 81e5868e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md

@ -79,7 +79,7 @@ check out our [contribution policy].
```rust
#[wasm_bindgen]
extern {
fn alert(s: &str);
pub fn alert(s: &str);
}
#[wasm_bindgen]

Loading…
Cancel
Save