diff options
author | Philipp Renoth <renoth@wildoak.de> | 2018-12-25 13:01:20 +0100 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-12-25 18:48:23 +0200 |
commit | 77db1e70dd82245b7c263b6c48c41d398ad7ed61 (patch) | |
tree | 356789c33658c04090aa2abefd7afcd9089ea8c8 /doc | |
parent | 9391638f88ee33f94686be8bf44d698b767d2b66 (diff) | |
download | node-new-77db1e70dd82245b7c263b6c48c41d398ad7ed61.tar.gz |
doc: fix NAPI typo
PR-URL: https://github.com/nodejs/node/pull/25216
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/n-api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md index c84b2f245a..1a02711f8e 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; |