From 53c173d6f932f1820bab1e779bb45dae322715cb Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 30 Apr 2020 18:58:29 +0800 Subject: [PATCH] docs: wrong language attr in Taste section --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ca32751f..a0856d4d 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ This library depends on N-API and requires Node 8.9 or later. It is still pretty One nice feature is that this crate allows you to build add-ons purely with the Rust toolchain and without involving `node-gyp`. ## Taste -```rs +```rust #[js_function(1)] // ------> argument length, omit for zero fn fibonacci<'env>(ctx: CallContext<'env>) -> Result> { let n = ctx.get::(0)?.try_into()?;