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 authored and James M Snell committed 2018-10-17 11:21:59 -07:00
1 parent 7401362a96
commit 9fa7c2aba2
1 file changed
+1 -1
+1 -1
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.