diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-21 17:38:31 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-25 00:06:00 +0300 |
commit | e2c3e4727d5899a709f5c421e128a4af2ef626f3 (patch) | |
tree | da562d9848f3b66dddd2f244972a5cbc672fda20 /doc/api/vm.md | |
parent | b6d293d2158c66a3edbb86c0c43b4c51af3484f7 (diff) | |
download | android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.gz android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.bz2 android-node-v8-e2c3e4727d5899a709f5c421e128a4af2ef626f3.zip |
doc: conform to rules for eslint-plugin-markdown
PR-URL: https://github.com/nodejs/node/pull/12563
Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'doc/api/vm.md')
-rw-r--r-- | doc/api/vm.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md index b6fb90440a..60bde1d729 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -435,7 +435,7 @@ to the `http` module passed to it. For instance: 'use strict'; const vm = require('vm'); -let code = +const code = `(function(require) { const http = require('http'); @@ -448,7 +448,7 @@ let code = console.log('Server running at http://127.0.0.1:8124/'); })`; - vm.runInThisContext(code)(require); +vm.runInThisContext(code)(require); ``` *Note*: The `require()` in the above case shares the state with the context it |