diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-11 13:05:49 (GMT) |
---|---|---|
committer | Stéphane Wirtel <stephane@wirtel.be> | 2019-09-11 13:05:49 (GMT) |
commit | 6a17751589841346b09f5eab747ae52bbf934348 (patch) | |
tree | ed4ed315013c41243768027322577517a90f4288 /Objects | |
parent | 43fb3bb223338511a7aee9b55d75af4a415134dc (diff) | |
download | cpython-6a17751589841346b09f5eab747ae52bbf934348.zip cpython-6a17751589841346b09f5eab747ae52bbf934348.tar.gz cpython-6a17751589841346b09f5eab747ae52bbf934348.tar.bz2 |
Doc: Fix typo in fastsearch comments (GH-14608) (GH-15933)
(cherry picked from commit 60bba83b5d9947fb3106325293e3a4e9c9cdea7e)
Co-authored-by: Valentin Haenel <esc@users.noreply.github.com>
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/stringlib/fastsearch.h | 4 |
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; |