Skip to content

Commit e7e3aee

Browse files
himself65addaleax
authored andcommitted
doc: use uppercase on windows path
PR-URL: #32294 Reviewed-By: Bartosz Sosnowski <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent f690fc9 commit e7e3aee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ fs.open(Buffer.from('/open/some/file.txt'), 'r', (err, fd) => {
152152

153153
On Windows, Node.js follows the concept of per-drive working directory. This
154154
behavior can be observed when using a drive path without a backslash. For
155-
example `fs.readdirSync('c:\\')` can potentially return a different result than
156-
`fs.readdirSync('c:')`. For more information, see
155+
example `fs.readdirSync('C:\\')` can potentially return a different result than
156+
`fs.readdirSync('C:')`. For more information, see
157157
[this MSDN page][MSDN-Rel-Path].
158158

159159
### URL object support

doc/api/path.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ path.posix.basename('/tmp/myfile.html');
5656

5757
On Windows Node.js follows the concept of per-drive working directory.
5858
This behavior can be observed when using a drive path without a backslash. For
59-
example, `path.resolve('c:\\')` can potentially return a different result than
60-
`path.resolve('c:')`. For more information, see
59+
example, `path.resolve('C:\\')` can potentially return a different result than
60+
`path.resolve('C:')`. For more information, see
6161
[this MSDN page][MSDN-Rel-Path].
6262

6363
## `path.basename(path[, ext])`

0 commit comments

Comments
 (0)