mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 07:00:59 +01:00
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>
This commit is contained in:
parent
4a911d46fe
commit
928473f689
@ -73,7 +73,7 @@ changes:
|
|||||||
* `ext` {string} An optional file extension
|
* `ext` {string} An optional file extension
|
||||||
* Returns: {string}
|
* 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
|
the Unix `basename` command. Trailing directory separators are ignored, see
|
||||||
[`path.sep`][].
|
[`path.sep`][].
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user