Skip to content
Closed
Prev Previous commit
Next Next commit
Update doc/api/n-api.md
  • Loading branch information
mhdawson authored Nov 15, 2021
commit 5c52bec68888a88f4460fc2a7a787b495a9989b5
3 changes: 2 additions & 1 deletion doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,8 @@ added: REPLACEME
NAPI_EXTERN napi_status node_api_throw_syntax_error(napi_env env,
const char* code,
const char* msg);
```
const char* code,
const char* msg);

* `[in] env`: The environment that the API is invoked under.
* `[in] code`: Optional error code to be set on the error.
Expand Down