Skip to content

Commit 9181e41

Browse files
committed
README fix
1 parent a13bde1 commit 9181e41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ module.exports = {
3939
Note: if you are using `file-loader`, make sure to add `.wasm` to the test field, otherwise the module will not be copied! (e.g. `test: /\.(wasm|jpg|jpeg|png|gif|svg|eot|ttf|woff|woff2)$/i,`).
4040

4141
Make sure you have the `cargo`, `rustc`, and (optionally) `emsdk` binaries somewhere in your `PATH`. `stdweb` and other Rust libraries require a nightly build, which can be installed from https://rustup.rs/ .
42+
4243
Require and initialize the wasm module:
4344

4445
```js
45-
const wasm = require('./main.rs')
46+
const wasm = require('./lib.rs')
4647
wasm.then(module => {
4748
// Use your module here
4849
console.log(module.doub(21))

0 commit comments

Comments
 (0)