diff --git a/doc/string.md b/doc/string.md index bf78ac7..12c958a 100644 --- a/doc/string.md +++ b/doc/string.md @@ -62,7 +62,7 @@ Napi::String::New(napi_env env, const char16_t* value, size_t length); - `[in] env`: The `napi_env` environment in which to construct the `Napi::Value` object. - `[in] value`: The C++ primitive from which to instantiate the `Napi::Value`. `value` may be any of: - - `std::string&` - represents an ANSI string. + - `std::string&` - represents a UTF8 string. - `std::u16string&` - represents a UTF16-LE string. - `const char*` - represents a UTF8 string. - `const char16_t*` - represents a UTF16-LE string. diff --git a/doc/symbol.md b/doc/symbol.md index 13abe3e..7e05fbb 100644 --- a/doc/symbol.md +++ b/doc/symbol.md @@ -23,7 +23,7 @@ Napi::Symbol::New(napi_env env, napi_value description); - `[in] env`: The `napi_env` environment in which to construct the `Napi::Symbol` object. - `[in] value`: The C++ primitive which represents the description hint for the `Napi::Symbol`. `description` may be any of: - - `std::string&` - ANSI string description. + - `std::string&` - UTF8 string description. - `const char*` - represents a UTF8 string description. - `String` - Node addon API String description. - `napi_value` - N-API `napi_value` description.