Skip to content

Commit 16c2451

Browse files
committed
doc: use uppercase on windows path
1 parent 2e3dc12 commit 16c2451

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)