From 2c50bcda8a472587c257baea7364a1462385adf5 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 c84b2f245adf34..1a02711f8e106e 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;