Skip to content

Commit 284d846

Browse files
authored
doc: fix return value of match_indices in pattern example
PR #870
1 parent a6ec74f commit 284d846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/re_unicode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<'t> From<Match<'t>> for Range<usize> {
129129
/// assert!(haystack.contains(&re));
130130
/// assert_eq!(haystack.find(&re), Some(1));
131131
/// assert_eq!(haystack.match_indices(&re).collect::<Vec<_>>(),
132-
/// vec![(1, 4), (5, 8)]);
132+
/// vec![(1, "111"), (5, "222")]);
133133
/// assert_eq!(haystack.split(&re).collect::<Vec<_>>(), vec!["a", "b", "c"]);
134134
/// ```
135135
#[derive(Clone)]

0 commit comments

Comments
 (0)