CLEANUP: Fix typos in the regex subsystem

Fix typos in the code comment of the regex subsystem.
This commit is contained in:
Joseph Herlant 2018-11-15 14:46:29 -08:00 committed by Willy Tarreau
parent 82b2f54d4c
commit eda75484a8

View 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 * value from a successful match is 1, indicating that just the first pair of
* offsets has been set. * 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. * space in the matches array.
*/ */
#ifdef USE_PCRE2 #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 * value from a successful match is 1, indicating that just the first pair of
* offsets has been set. * 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. * space in the matches array.
*/ */
#ifdef USE_PCRE2 #ifdef USE_PCRE2