docs: broken example in README.md
Fix https://github.com/napi-rs/napi-rs/issues/1158
This commit is contained in:
parent
4b06121c5e
commit
b074608582
1 changed files with 1 additions and 3 deletions
|
@ -86,11 +86,9 @@ One nice feature is that this crate allows you to build add-ons purely with the
|
|||
### Define JavaScript functions
|
||||
|
||||
```rust
|
||||
#[macro_use]
|
||||
extern crate napi;
|
||||
|
||||
/// import the preludes
|
||||
use napi::bindgen_prelude::*;
|
||||
use napi_derive::napi;
|
||||
|
||||
/// module registration is done by the runtime, no need to explicitly do it now.
|
||||
#[napi]
|
||||
|
|
Loading…
Reference in a new issue