From b980fa3a217032b9a5ad2c4b78e99b000792988e Mon Sep 17 00:00:00 2001 From: Philipp Renoth Date: Tue, 25 Dec 2018 13:01:20 +0100 Subject: [PATCH] doc: fix NAPI typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/25216 Reviewed-By: Richard Lau Reviewed-By: Benjamin Gruenbaum Reviewed-By: Vse Mozhet Byt Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig --- 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 46693fad0c3769..db277b5cdec5e3 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -60,7 +60,7 @@ if (status != napi_ok) { return; } -status = napi_crate_string_utf8(env, "bar", NAPI_AUTO_LENGTH, &string); +status = napi_create_string_utf8(env, "bar", NAPI_AUTO_LENGTH, &string); if (status != napi_ok) { napi_throw_error(env, ...); return;