Skip to content

Commit

Permalink
doc: Added required return to example (#793)
Browse files Browse the repository at this point in the history
PR-URL: #793
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information
pacop authored Aug 24, 2020
1 parent cec2c76 commit 1c2a8d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Value Fn(const CallbackInfo& info) {

Object Init(Env env, Object exports) {
exports.Set(String::New(env, "fn"), Function::New<Fn>(env));
return exports;
}

NODE_API_MODULE(NODE_GYP_MODULE_NAME, Init)
Expand Down

0 comments on commit 1c2a8d5

Please sign in to comment.