Skip to content

Commit c9da774

Browse files
nariroujasnell
authored andcommitted
doc: replace function with arrow function in vm.md
PR-URL: #17307 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Yosuke Furukawa <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent bd9f7d5 commit c9da774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/vm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ to the `http` module passed to it. For instance:
444444
const vm = require('vm');
445445

446446
const code = `
447-
(function(require) {
447+
((require) => {
448448
const http = require('http');
449449
450450
http.createServer((request, response) => {

0 commit comments

Comments
 (0)