File tree 1 file changed +5
-5
lines changed
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
927
927
exported by the module. N-API modules cannot modify the `module` object but can
928
928
specify anything as the `exports` property of the module.
929
929
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:
932
932
933
933
```C
934
934
napi_value Init(napi_env env, napi_value exports) {
@@ -942,7 +942,7 @@ napi_value Init(napi_env env, napi_value exports) {
942
942
}
943
943
```
944
944
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:
946
946
947
947
```C
948
948
napi_value Init(napi_env env, napi_value exports) {
@@ -954,8 +954,8 @@ napi_value Init(napi_env env, napi_value exports) {
954
954
}
955
955
```
956
956
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][]):
959
959
960
960
```C
961
961
// NOTE: partial example, not all referenced code is included
You can’t perform that action at this time.
0 commit comments