From e7e3aeec349b97f29aafccec463144b56d9ad5b2 Mon Sep 17 00:00:00 2001 From: himself65 Date: Mon, 16 Mar 2020 14:48:00 +0800 Subject: [PATCH] doc: use uppercase on windows path PR-URL: https://github.com/nodejs/node/pull/32294 Reviewed-By: Bartosz Sosnowski Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Anna Henningsen --- doc/api/fs.md | 4 ++-- doc/api/path.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 2db3fc932ba8d9..aea1303e5360d3 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -152,8 +152,8 @@ fs.open(Buffer.from('/open/some/file.txt'), 'r', (err, fd) => { On Windows, Node.js follows the concept of per-drive working directory. This behavior can be observed when using a drive path without a backslash. For -example `fs.readdirSync('c:\\')` can potentially return a different result than -`fs.readdirSync('c:')`. For more information, see +example `fs.readdirSync('C:\\')` can potentially return a different result than +`fs.readdirSync('C:')`. For more information, see [this MSDN page][MSDN-Rel-Path]. ### URL object support diff --git a/doc/api/path.md b/doc/api/path.md index c05a5c29efb12f..945c1a0394ca46 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -56,8 +56,8 @@ path.posix.basename('/tmp/myfile.html'); On Windows Node.js follows the concept of per-drive working directory. This behavior can be observed when using a drive path without a backslash. For -example, `path.resolve('c:\\')` can potentially return a different result than -`path.resolve('c:')`. For more information, see +example, `path.resolve('C:\\')` can potentially return a different result than +`path.resolve('C:')`. For more information, see [this MSDN page][MSDN-Rel-Path]. ## `path.basename(path[, ext])`