Skip to content

Commit 47f119c

Browse files
stiliyantrevnorris
authored andcommitted
doc: fix wording and punctuation in modules
[trev.norris@gmail.com: break lines at 80 characters] Signed-off-by: Trevor Norris <trev.norris@gmail.com>
1 parent 1a4a189 commit 47f119c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

doc/api/modules.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ The module system is implemented in the `require("module")` module.
6161

6262
<!--type=misc-->
6363

64-
When there are circular `require()` calls, a module might not be
65-
done being executed when it is returned.
64+
When there are circular `require()` calls, a module might not have finished
65+
executing when it is returned.
6666

6767
Consider this situation:
6868

@@ -93,7 +93,7 @@ Consider this situation:
9393

9494
When `main.js` loads `a.js`, then `a.js` in turn loads `b.js`. At that
9595
point, `b.js` tries to load `a.js`. In order to prevent an infinite
96-
loop an **unfinished copy** of the `a.js` exports object is returned to the
96+
loop, an **unfinished copy** of the `a.js` exports object is returned to the
9797
`b.js` module. `b.js` then finishes loading, and its `exports` object is
9898
provided to the `a.js` module.
9999

@@ -248,7 +248,7 @@ a global but rather local to each module.
248248
* {Object}
249249

250250
The `module.exports` object is created by the Module system. Sometimes this is not
251-
acceptable; many want their module to be an instance of some class. To do this
251+
acceptable; many want their module to be an instance of some class. To do this,
252252
assign the desired export object to `module.exports`. Note that assigning the
253253
desired object to `exports` will simply rebind the local `exports` variable,
254254
which is probably not what you want to do.

0 commit comments

Comments
 (0)