Skip to content

Commit 7cdd787

Browse files
yjaeseokmhdawson
authored andcommitted
doc: added cpp highlight for string.md
There is no cpp highlight for some function in string.md file. PR-URL: #329 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
1 parent 8ed29f5 commit 7cdd787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/string.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If an error occurs, a `Napi::Error` will get thrown. If C++ exceptions are not
1212
being used, callers should check the result of `Env::IsExceptionPending` before
1313
attempting to use the returned value.
1414

15-
```
15+
```cpp
1616
String(napi_env env, napi_value value); ///< Wraps a N-API value primitive.
1717
```
1818
- `[in] env` - The environment in which to create the string.
@@ -83,4 +83,4 @@ Returns a UTF-8 encoded C++ string.
8383
std::u16string Utf16Value() const;
8484
```
8585

86-
Returns a UTF-16 encoded C++ string.
86+
Returns a UTF-16 encoded C++ string.

0 commit comments

Comments
 (0)