projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fcaffb
)
Doc: Fix typo in fastsearch comments (GH-14608)
author
Valentin Haenel
<esc@users.noreply.github.com>
Wed, 11 Sep 2019 12:43:29 +0000
(14:43 +0200)
committer
Stéphane Wirtel
<stephane@wirtel.be>
Wed, 11 Sep 2019 12:43:29 +0000
(14:43 +0200)
Objects/stringlib/fastsearch.h
patch
|
blob
|
history
diff --git
a/Objects/stringlib/fastsearch.h
b/Objects/stringlib/fastsearch.h
index 46fcf356d0d0f57dbb9eb30901588442dd0ebfde..56a4467d353813e5db41c8c959e8d1639f9335d9 100644
(file)
--- 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 t
w
o many likely
+ /* use memchr if we can choose a needle without t
o
o 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 t
w
o many likely
+ /* use memrchr if we can choose a needle without t
o
o many likely
false positives */
const STRINGLIB_CHAR *s1;
Py_ssize_t n1;