From 9729278007b8160e62027f34967e16b372189c48 Mon Sep 17 00:00:00 2001 From: iskore Date: Sat, 3 Feb 2018 21:57:02 -0500 Subject: [PATCH] doc: small typo in n-api.md Backport-PR-URL: https://github.com/nodejs/node/pull/19265 PR-URL: https://github.com/nodejs/node/pull/18555 Reviewed-By: Colin Ihrig Reviewed-By: Jon Moss Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: Daniel Bevenius Reviewed-By: James M Snell Reviewed-By: Evan Lucas --- doc/api/n-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index d10b2f1aa63452..febaebe4fab871 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -918,7 +918,7 @@ For example, to set a function to be returned by the `require()` for the addon: napi_value Init(napi_env env, napi_value exports) { napi_value method; napi_status status; - status = napi_create_function(env, "exports", Method, NULL, &method)); + status = napi_create_function(env, "exports", Method, NULL, &method); if (status != napi_ok) return NULL; return method; }