mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: fix example in node-api docs
Fixes: https://github.com/nodejs/node/issues/39564 Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: https://github.com/nodejs/node/pull/41264 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user