Doc: Fix typo in fastsearch comments (GH-14608) (GH-15933)

(cherry picked from commit 60bba83b5d)

Co-authored-by: Valentin Haenel <esc@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2019-09-11 06:05:49 -07:00 committed by Stéphane Wirtel
parent 43fb3bb223
commit 6a17751589
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ STRINGLIB(find_char)(const STRINGLIB_CHAR* s, Py_ssize_t n, STRINGLIB_CHAR ch)
return (p - s);
return -1;
#else
/* use memchr if we can choose a needle without two many likely
/* use memchr if we can choose a needle without too many likely
false positives */
const STRINGLIB_CHAR *s1, *e1;
unsigned char needle = ch & 0xff;
@ -111,7 +111,7 @@ STRINGLIB(rfind_char)(const STRINGLIB_CHAR* s, Py_ssize_t n, STRINGLIB_CHAR ch)
return (p - s);
return -1;
#else
/* use memrchr if we can choose a needle without two many likely
/* use memrchr if we can choose a needle without too many likely
false positives */
const STRINGLIB_CHAR *s1;
Py_ssize_t n1;