From 7cdd78726afeacb2d61c98fbc0ea7f8caacebe91 Mon Sep 17 00:00:00 2001 From: Jaeseok Yoon Date: Thu, 6 Sep 2018 09:53:31 +0900 Subject: [PATCH] doc: added cpp highlight for string.md There is no cpp highlight for some function in string.md file. PR-URL: https://github.com/nodejs/node-addon-api/pull/329 Reviewed-By: Michael Dawson Reviewed-By: Nicola Del Gobbo --- doc/string.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/string.md b/doc/string.md index fd1ff8b13..faa308a2d 100644 --- a/doc/string.md +++ b/doc/string.md @@ -12,7 +12,7 @@ If an error occurs, a `Napi::Error` will get thrown. If C++ exceptions are not being used, callers should check the result of `Env::IsExceptionPending` before attempting to use the returned value. -``` +```cpp String(napi_env env, napi_value value); ///< Wraps a N-API value primitive. ``` - `[in] env` - The environment in which to create the string. @@ -83,4 +83,4 @@ Returns a UTF-8 encoded C++ string. std::u16string Utf16Value() const; ``` -Returns a UTF-16 encoded C++ string. \ No newline at end of file +Returns a UTF-16 encoded C++ string.