Skip to content

Commit

Permalink
doc: fix example in node-api docs
Browse files Browse the repository at this point in the history
Fixes: #39564

Signed-off-by: Michael Dawson <[email protected]>

PR-URL: #41264
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Harshitha K P <[email protected]>
  • Loading branch information
mhdawson authored and danielleadams committed Feb 1, 2022
1 parent 599c119 commit f3b0dfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/api/n-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4542,6 +4542,7 @@ snippet:
function AddTwo(num) {
return num + 2;
}
global.AddTwo = AddTwo;
```
Then, the above function can be invoked from a native add-on using the
Expand Down

0 comments on commit f3b0dfc

Please sign in to comment.