mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-04 07:01:32 +00:00
Update README.md sample code to 2018 edition
This commit is contained in:
@ -12,7 +12,6 @@
|
|||||||
Import JavaScript things into Rust and export Rust things to JavaScript.
|
Import JavaScript things into Rust and export Rust things to JavaScript.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
extern crate wasm_bindgen;
|
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
// Import the `window.alert` function from the Web.
|
// Import the `window.alert` function from the Web.
|
||||||
|
Reference in New Issue
Block a user