about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-06-12 12:39:47 -0400
committerGitHub <noreply@github.com>2017-06-12 12:39:47 -0400
commitb646ca9267cec43aa116189f2d6692accb73a16c (patch)
tree499740c3c5c894082f8929c16c0a5c44a8ca9bca
parent3a550a48935d0823c85846889ab2c1614673d794 (diff)
parent11ee1b0b2e438f13153a1caff2d4ce6c2c9d0fa1 (diff)
Rollup merge of #42586 - ideasman42:patch-1, r=steveklabnik
Docstring: add missing term 'disjoint' from matches, rmatches

This follows `match_indices`
-rw-r--r--src/libcollections/str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index eb32f478194..fdb6ee42127 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -1320,7 +1320,7 @@ impl str {
         core_str::StrExt::rsplitn(self, n, pat)
     }
 
-    /// An iterator over the matches of a pattern within the given string
+    /// An iterator over the disjoint matches of a pattern within the given string
     /// slice.
     ///
     /// The pattern can be a `&str`, [`char`], or a closure that
@@ -1359,7 +1359,7 @@ impl str {
         core_str::StrExt::matches(self, pat)
     }
 
-    /// An iterator over the matches of a pattern within this string slice,
+    /// An iterator over the disjoint matches of a pattern within this string slice,
     /// yielded in reverse order.
     ///
     /// The pattern can be a `&str`, [`char`], or a closure that determines if