Skip to content

Commit 11ee1b0

Browse files
authored
Add missing term 'disjoint' from matches, rmatches
This follows `match_indices`
1 parent 995f741 commit 11ee1b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollections/str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ impl str {
13201320
core_str::StrExt::rsplitn(self, n, pat)
13211321
}
13221322

1323-
/// An iterator over the matches of a pattern within the given string
1323+
/// An iterator over the disjoint matches of a pattern within the given string
13241324
/// slice.
13251325
///
13261326
/// The pattern can be a `&str`, [`char`], or a closure that
@@ -1359,7 +1359,7 @@ impl str {
13591359
core_str::StrExt::matches(self, pat)
13601360
}
13611361

1362-
/// An iterator over the matches of a pattern within this string slice,
1362+
/// An iterator over the disjoint matches of a pattern within this string slice,
13631363
/// yielded in reverse order.
13641364
///
13651365
/// The pattern can be a `&str`, [`char`], or a closure that determines if

0 commit comments

Comments
 (0)