Skip to content

Commit 59a8dbe

Browse files
himself65targos
authored andcommittedApr 22, 2020
doc: use uppercase on windows path
PR-URL: #32294 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent fedcb16 commit 59a8dbe

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)
Please sign in to comment.