Skip to content

Commit 4fd7a3f

Browse files
committed
Fix typo
1 parent 09dd215 commit 4fd7a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/re.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ impl<'r, 't> Iterator for FindCaptures<'r, 't> {
10781078
// i.e., no infinite loops please.
10791079
if e == s {
10801080
self.last_end += self.search[self.last_end..].chars()
1081-
.next().map(|c| c.len_utf8()).unwrap_or(0);
1081+
.next().map(|c| c.len_utf8()).unwrap_or(1);
10821082
} else {
10831083
self.last_end = e;
10841084
}

0 commit comments

Comments
 (0)