Commit 173f297
doc: update example in module registration
Update return type of `Init` function in documentation to match
`napi_addon_register_func` signature. Return type used to be
`void`, now it is `napi_value`.
Backport-PR-URL: #19447
PR-URL: #17424
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent d4284a4 commit 173f297
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2877 | 2877 | | |
2878 | 2878 | | |
2879 | 2879 | | |
2880 | | - | |
| 2880 | + | |
2881 | 2881 | | |
2882 | 2882 | | |
2883 | 2883 | | |
2884 | | - | |
2885 | | - | |
| 2884 | + | |
| 2885 | + | |
2886 | 2886 | | |
2887 | 2887 | | |
2888 | | - | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
2889 | 2891 | | |
2890 | 2892 | | |
2891 | 2893 | | |
| |||
0 commit comments