File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -927,8 +927,8 @@ convenience. If `Init` returns NULL, the parameter passed as `exports` is
927927exported by the module. N-API modules cannot modify the `module` object but can
928928specify 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
934934napi_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
948948napi_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
You can’t perform that action at this time.
0 commit comments