Skip to content

Commit 3880cc3

Browse files
aduh95rdw-msft
authored andcommitted
doc: fix globals.md introduction
Splitting the introduction sentence in two paragraphs so it's clearer the list of variables only apply to the second sentence. PR-URL: nodejs#51742 Reviewed-By: Jithil P Ponnan <jithil@outlook.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 012858f commit 3880cc3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/api/globals.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
<!-- type=misc -->
66

7-
These objects are available in all modules. The following variables may appear
8-
to be global but are not. They exist only in the scope of modules, see the
9-
[module system documentation][]:
7+
These objects are available in all modules.
8+
9+
The following variables may appear to be global but are not. They exist only in
10+
the scope of [CommonJS modules][]:
1011

1112
* [`__dirname`][]
1213
* [`__filename`][]
@@ -1139,6 +1140,7 @@ added: v18.0.0
11391140
A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
11401141

11411142
[CommonJS module]: modules.md
1143+
[CommonJS modules]: modules.md
11421144
[ECMAScript module]: esm.md
11431145
[Navigator API]: https://html.spec.whatwg.org/multipage/system-state.html#the-navigator-object
11441146
[RFC 5646]: https://www.rfc-editor.org/rfc/rfc5646.txt
@@ -1206,7 +1208,6 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
12061208
[`window.navigator`]: https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator
12071209
[buffer section]: buffer.md
12081210
[built-in objects]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
1209-
[module system documentation]: modules.md
12101211
[timers]: timers.md
12111212
[webassembly-mdn]: https://developer.mozilla.org/en-US/docs/WebAssembly
12121213
[webassembly-org]: https://webassembly.org

0 commit comments

Comments
 (0)