From 1b90ab03bdca2bf0f4e24c1e6b1a7d47dd555536 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 --- 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;