summaryrefslogtreecommitdiff
path: root/doc/api/modules.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-21 17:38:31 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 00:06:00 +0300
commite2c3e4727d5899a709f5c421e128a4af2ef626f3 (patch)
treeda562d9848f3b66dddd2f244972a5cbc672fda20 /doc/api/modules.md
parentb6d293d2158c66a3edbb86c0c43b4c51af3484f7 (diff)
downloadandroid-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/modules.md')
-rw-r--r--doc/api/modules.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md
index d40f25d0a9..48a4d1f3cf 100644
--- a/doc/api/modules.md
+++ b/doc/api/modules.md
@@ -70,7 +70,7 @@ When a file is run directly from Node.js, `require.main` is set to its
directly by testing
```js
-require.main === module
+require.main === module;
```
For a file `foo.js`, this will be `true` if run via `node foo.js`, but
@@ -441,7 +441,7 @@ Before a module's code is executed, Node.js will wrap it with a function
wrapper that looks like the following:
```js
-(function (exports, require, module, __filename, __dirname) {
+(function(exports, require, module, __filename, __dirname) {
// Your module code actually lives in here
});
```