summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib
diff options
context:
space:
mode:
authorValentin Haenel <esc@users.noreply.github.com>2019-09-11 12:43:29 (GMT)
committerStéphane Wirtel <stephane@wirtel.be>2019-09-11 12:43:29 (GMT)
commit60bba83b5d9947fb3106325293e3a4e9c9cdea7e (patch)
tree91cfe254a2edb78350603082c24eb8bf899ab176 /Objects/stringlib
parent8fcaffb048d2359a4c06ed5d8fbbf46d3ae1a472 (diff)
downloadcpython-60bba83b5d9947fb3106325293e3a4e9c9cdea7e.zip
cpython-60bba83b5d9947fb3106325293e3a4e9c9cdea7e.tar.gz
cpython-60bba83b5d9947fb3106325293e3a4e9c9cdea7e.tar.bz2
Doc: Fix typo in fastsearch comments (GH-14608)
Diffstat (limited to 'Objects/stringlib')
-rw-r--r--Objects/stringlib/fastsearch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringlib/fastsearch.h b/Objects/stringlib/fastsearch.h
index 46fcf35..56a4467 100644
--- a/Objects/stringlib/fastsearch.h
+++ b/Objects/stringlib/fastsearch.h
@@ -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;