We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c77667d commit 9843762Copy full SHA for 9843762
src/string/aho_corasick.rs
@@ -77,7 +77,7 @@ impl AhoCorasick {
77
}
78
79
for &len in &cur.borrow().lengths {
80
- ans.push(&s[i - len + 1..=i]);
+ ans.push(&s[i + 1 - len..=i]);
81
82
83
ans
0 commit comments