doc: fix minor typo in n-api.md

Correct parameter name for `napi_is_error` description.

PR-URL: https://github.com/nodejs/node/pull/23310
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Aleksey Chemakin 2018-10-07 11:36:14 +07:00 committed by Vse Mozhet Byt
parent fd6a7d4db1
commit 4f0971d366

View File

@ -571,7 +571,7 @@ NAPI_EXTERN napi_status napi_is_error(napi_env env,
bool* result);
```
- `[in] env`: The environment that the API is invoked under.
- `[in] msg`: The `napi_value` to be checked.
- `[in] value`: The `napi_value` to be checked.
- `[out] result`: Boolean value that is set to true if `napi_value` represents
an error, false otherwise.