Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-08-26 19:02:27 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-08-29 16:53:03 +0300
commit1a25f9639a9668d8ea90022b0f3d3b47d29971b6 (patch)
treeceba486d64311f7d40be3ad57db6bb217f9213fa /doc/api/path.md
parentb2f0cfa6b0e139a2f990d4e1e7104abf015fe8e7 (diff)
doc: remove redundant 'Example:' and similar notes
Some nits were also fixed in passing. PR-URL: https://github.com/nodejs/node/pull/22537 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/path.md')
-rw-r--r--doc/api/path.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/path.md b/doc/api/path.md
index 887928dd1a4..2a1f06028ee 100644
--- a/doc/api/path.md
+++ b/doc/api/path.md
@@ -58,7 +58,7 @@ path.posix.basename('/tmp/myfile.html');
*Note:* 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
+example, `path.resolve('c:\\')` can potentially return a different result than
`path.resolve('c:')`. For more information, see
[this MSDN page][MSDN-Rel-Path].
@@ -258,7 +258,7 @@ The `path.isAbsolute()` method determines if `path` is an absolute path.
If the given `path` is a zero-length string, `false` will be returned.
-For example on POSIX:
+For example, on POSIX:
```js
path.isAbsolute('/foo/bar'); // true
@@ -325,7 +325,7 @@ instance of the platform specific path segment separator (`/` on POSIX and
If the `path` is a zero-length string, `'.'` is returned, representing the
current working directory.
-For example on POSIX:
+For example, on POSIX:
```js
path.normalize('/foo/bar//baz/asdf/quux/..');
@@ -369,7 +369,7 @@ The returned object will have the following properties:
* `name` {string}
* `ext` {string}
-For example on POSIX:
+For example, on POSIX:
```js
path.parse('/home/user/dir/file.txt');
@@ -446,7 +446,7 @@ path (after calling `path.resolve()` on each), a zero-length string is returned.
If a zero-length string is passed as `from` or `to`, the current working
directory will be used instead of the zero-length strings.
-For example on POSIX:
+For example, on POSIX:
```js
path.relative('/data/orandea/test/aaa', '/data/orandea/impl/bbb');
@@ -515,7 +515,7 @@ Provides the platform-specific path segment separator:
* `\` on Windows
* `/` on POSIX
-For example on POSIX:
+For example, on POSIX:
```js
'foo/bar/baz'.split(path.sep);