diff options
author | Deep310 <55121371+Deep310@users.noreply.github.com> | 2020-05-21 01:23:56 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-05-23 18:13:28 +0300 |
commit | 928473f689f1bc9a2fcb1fc0c55573b4d5994735 (patch) | |
tree | b89c2448093049c8f44d8a18ab24903ccc11c6e2 /doc/api/path.md | |
parent | 4a911d46fe8f325b81e1cf39d1d62fd98788a7df (diff) |
doc: fixed a grammatical error in path.md
It said, " The path.basename() methods returns the last portion....".
"Methods" was wrong and it is fixed to "method".
PR-URL: https://github.com/nodejs/node/pull/33489
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/path.md')
-rw-r--r-- | doc/api/path.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/path.md b/doc/api/path.md index 945c1a0394c..8349bce252a 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -73,7 +73,7 @@ changes: * `ext` {string} An optional file extension * Returns: {string} -The `path.basename()` methods returns the last portion of a `path`, similar to +The `path.basename()` method returns the last portion of a `path`, similar to the Unix `basename` command. Trailing directory separators are ignored, see [`path.sep`][]. |