Skip to content

Commit c76ec4d

Browse files
Deep310codebytere
authored andcommitted
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: #33489 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent adb93f1 commit c76ec4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/path.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ changes:
7373
* `ext` {string} An optional file extension
7474
* Returns: {string}
7575

76-
The `path.basename()` methods returns the last portion of a `path`, similar to
76+
The `path.basename()` method returns the last portion of a `path`, similar to
7777
the Unix `basename` command. Trailing directory separators are ignored, see
7878
[`path.sep`][].
7979

0 commit comments

Comments
 (0)