diff options
Diffstat (limited to 'doc/api/modules.md')
-rw-r--r-- | doc/api/modules.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md index 92250544e0..5204a0ca61 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -706,7 +706,7 @@ this, assign the desired export object to `module.exports`. Note that assigning the desired object to `exports` will simply rebind the local `exports` variable, which is probably not what is desired. -For example suppose we were making a module called `a.js` +For example suppose we were making a module called `a.js`: ```js const EventEmitter = require('events'); @@ -720,7 +720,7 @@ setTimeout(() => { }, 1000); ``` -Then in another file we could do +Then in another file we could do: ```js const a = require('./a'); |