From 1289cbd09ddeef4f9210b035522aad5eeaae2276 Mon Sep 17 00:00:00 2001 From: narirou Date: Sun, 26 Nov 2017 17:28:21 +0900 Subject: [PATCH] doc: replace function with arrow function in vm.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17307 Reviewed-By: Joyee Cheung Reviewed-By: Yosuke Furukawa Reviewed-By: Luigi Pinca Reviewed-By: Michaƫl Zasso Reviewed-By: Daijiro Wachi Reviewed-By: Gireesh Punathil Reviewed-By: Jon Moss Reviewed-By: James M Snell --- doc/api/vm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/vm.md b/doc/api/vm.md index 4d4b7c9e2c87b6..9918a2bd568a31 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -469,7 +469,7 @@ to the `http` module passed to it. For instance: const vm = require('vm'); const code = ` -(function(require) { +((require) => { const http = require('http'); http.createServer((request, response) => {