]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Fix typos in the regex subsystem
authorJoseph Herlant <aerostitch@debian.org>
Thu, 15 Nov 2018 22:46:29 +0000 (14:46 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:26:42 +0000 (22:26 +0100)
Fix typos in the code comment of the regex subsystem.

src/regex.c

index 62c8e84df9e8b122dad61b44bebd70f885de6711..f3f74c3dce485dee83f1c42598f86bcd947291f0 100644 (file)
@@ -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