Skip to content

Commit f4c6f7a

Browse files
Trotttargos
authored andcommitted
doc: remove "note that" from modules.md
PR-URL: #28329 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent f299c44 commit f4c6f7a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/modules.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,8 @@ added: v0.3.0
589589
* {Object}
590590

591591
Modules are cached in this object when they are required. By deleting a key
592-
value from this object, the next `require` will reload the module. Note that
593-
this does not apply to [native addons][], for which reloading will result in an
592+
value from this object, the next `require` will reload the module.
593+
This does not apply to [native addons][], for which reloading will result in an
594594
error.
595595

596596
Adding or replacing entries is also possible. This cache is checked before
@@ -675,7 +675,7 @@ changes:
675675
* `paths` {string[]} Paths to resolve module location from. If present, these
676676
paths are used instead of the default resolution paths, with the exception
677677
of [GLOBAL_FOLDERS][] like `$HOME/.node_modules`, which are always
678-
included. Note that each of these paths is used as a starting point for
678+
included. Each of these paths is used as a starting point for
679679
the module resolution algorithm, meaning that the `node_modules` hierarchy
680680
is checked from this location.
681681
* Returns: {string}
@@ -728,7 +728,7 @@ added: v0.1.16
728728

729729
The `module.exports` object is created by the `Module` system. Sometimes this is
730730
not acceptable; many want their module to be an instance of some class. To do
731-
this, assign the desired export object to `module.exports`. Note that assigning
731+
this, assign the desired export object to `module.exports`. Assigning
732732
the desired object to `exports` will simply rebind the local `exports` variable,
733733
which is probably not what is desired.
734734

@@ -755,7 +755,7 @@ a.on('ready', () => {
755755
});
756756
```
757757

758-
Note that assignment to `module.exports` must be done immediately. It cannot be
758+
Assignment to `module.exports` must be done immediately. It cannot be
759759
done in any callbacks. This does not work:
760760

761761
`x.js`:
@@ -905,7 +905,7 @@ added: v9.3.0
905905
A list of the names of all modules provided by Node.js. Can be used to verify
906906
if a module is maintained by a third party or not.
907907

908-
Note that `module` in this context isn't the same object that's provided
908+
`module` in this context isn't the same object that's provided
909909
by the [module wrapper][]. To access it, require the `Module` module:
910910

911911
```js

0 commit comments

Comments
 (0)