Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60bba83

Browse files
escmatrixise
authored andcommitted
Doc: Fix typo in fastsearch comments (GH-14608)
1 parent 8fcaffb commit 60bba83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/stringlib/fastsearch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ STRINGLIB(find_char)(const STRINGLIB_CHAR* s, Py_ssize_t n, STRINGLIB_CHAR ch)
5252
return (p - s);
5353
return -1;
5454
#else
55-
/* use memchr if we can choose a needle without two many likely
55+
/* use memchr if we can choose a needle without too many likely
5656
false positives */
5757
const STRINGLIB_CHAR *s1, *e1;
5858
unsigned char needle = ch & 0xff;
@@ -111,7 +111,7 @@ STRINGLIB(rfind_char)(const STRINGLIB_CHAR* s, Py_ssize_t n, STRINGLIB_CHAR ch)
111111
return (p - s);
112112
return -1;
113113
#else
114-
/* use memrchr if we can choose a needle without two many likely
114+
/* use memrchr if we can choose a needle without too many likely
115115
false positives */
116116
const STRINGLIB_CHAR *s1;
117117
Py_ssize_t n1;

0 commit comments

Comments
 (0)