doc: typo

This commit is contained in:
LongYinan 2020-05-01 12:45:59 +08:00
parent efb590447e
commit 5bd720a0cb
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -28,7 +28,7 @@ One nice feature is that this crate allows you to build add-ons purely with the
## Taste
```rust
#[js_function(1)] // ------> argument length, omit for zero
#[js_function(1)] // ------> arguments length, omit for zero
fn fibonacci<'env>(ctx: CallContext<'env>) -> Result<Value<'env, Number>> {
let n = ctx.get::<Number>(0)?.try_into()?;
ctx.env.create_int64(fibonacci_native(n))