From c8f79d80a4f6e3a4f82e076c8f462c9b43aa865e Mon Sep 17 00:00:00 2001 From: Deep310 <55121371+Deep310@users.noreply.github.com> Date: Wed, 20 May 2020 18:23:56 -0400 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- doc/api/path.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/path.md b/doc/api/path.md index 945c1a0394ca46..8349bce252a56b 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`][].