Hi,

This patch fixes typos in the code comment of the regex subsystem.

Thanks,
Joseph
From 6944830de98bf005672546f113e3bf48537f277d Mon Sep 17 00:00:00 2001
From: Joseph Herlant <[email protected]>
Date: Thu, 15 Nov 2018 14:46:29 -0800
Subject: [PATCH] CLEANUP: Fix typos in the regex subsystem

Fix typos in the code comment of the regex subsystem.
---
 src/regex.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/regex.c b/src/regex.c
index 62c8e84d..f3f74c3d 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -193,7 +193,7 @@ int regex_exec_match(const struct my_regex *preg, const char *subject,
 	 * value from a successful match is 1, indicating that just the first pair of
 	 * offsets has been set.
 	 *
-	 * It seems that this function returns 0 if it detect more matches than avalaible
+	 * It seems that this function returns 0 if it detects more matches than available
 	 * space in the matches array.
 	 */
 #ifdef USE_PCRE2
@@ -286,7 +286,7 @@ int regex_exec_match2(const struct my_regex *preg, char *subject, int length,
 	 * value from a successful match is 1, indicating that just the first pair of
 	 * offsets has been set.
 	 *
-	 * It seems that this function returns 0 if it detect more matches than avalaible
+	 * It seems that this function returns 0 if it detects more matches than available
 	 * space in the matches array.
 	 */
 #ifdef USE_PCRE2
-- 
2.19.1

Reply via email to