Fix comment typo in canonicalize_path_enc()

Started by Japin Li13 days ago2 messageshackers
Jump to latest
#1Japin Li
japinli@hotmail.com

Hi, hackers

I found a small typo in the canonicalize_path_enc() comment -- it should be
"parsed", not "parse".

diff --git a/src/port/path.c b/src/port/path.c
index fef0ae77f87..3938ff33af3 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -408,7 +408,7 @@ canonicalize_path_enc(char *path, int encoding)
 	 *
 	 * This loop overwrites the path in-place.  This is safe since we'll never
 	 * make the path longer.  "unparse" points to where we are reading the
-	 * path, "parse" to where we are writing.
+	 * path, "parsed" to where we are writing.
 	 */
 	spath = skip_drive(path);
 	if (*spath == '\0')

--
Regards,
Japin Li
ChengDu WenWu Information Technology Co., Ltd.

#2Michael Paquier
michael@paquier.xyz
In reply to: Japin Li (#1)
Re: Fix comment typo in canonicalize_path_enc()

On Mon, Jul 13, 2026 at 11:34:38AM +0800, Japin Li wrote:

I found a small typo in the canonicalize_path_enc() comment -- it should be
"parsed", not "parse".

As in the variable name. Thanks, grabbed for later.
--
Michael