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
.
Checklist
-
make lint
(UNIX) passes -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc