Skip to content

Commit a71f9ba

Browse files
author
Gabriel Schulhof
committed
doc: remove "For example" expression in N-API doc
PR-URL: #20187 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent cc8a33e commit a71f9ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/n-api.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -927,8 +927,8 @@ convenience. If `Init` returns NULL, the parameter passed as `exports` is
927927
exported by the module. N-API modules cannot modify the `module` object but can
928928
specify anything as the `exports` property of the module.
929929

930-
For example, to add the method `hello` as a function so that it can be called
931-
as a method provided by the addon:
930+
To add the method `hello` as a function so that it can be called as a method
931+
provided by the addon:
932932

933933
```C
934934
napi_value Init(napi_env env, napi_value exports) {
@@ -942,7 +942,7 @@ napi_value Init(napi_env env, napi_value exports) {
942942
}
943943
```
944944

945-
For example, to set a function to be returned by the `require()` for the addon:
945+
To set a function to be returned by the `require()` for the addon:
946946

947947
```C
948948
napi_value Init(napi_env env, napi_value exports) {
@@ -954,8 +954,8 @@ napi_value Init(napi_env env, napi_value exports) {
954954
}
955955
```
956956

957-
For example, to define a class so that new instances can be created
958-
(often used with [Object Wrap][]):
957+
To define a class so that new instances can be created (often used with
958+
[Object Wrap][]):
959959

960960
```C
961961
// NOTE: partial example, not all referenced code is included

0 commit comments

Comments
 (0)