about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-07 13:58:51 +0000
committerbors <bors@rust-lang.org>2015-10-07 13:58:51 +0000
commitc056cbbe05c4c9f59feffdc5c88609bed993b169 (patch)
tree73af996f7667168b25fec60ac2c2c7a59f90151b
parentadd6b90a3f613e2ae6b2ff0c4916fa74f0cf1da0 (diff)
parent836be409ee38b9d09eb6b31c7027c41de389c283 (diff)
downloadrust-c056cbbe05c4c9f59feffdc5c88609bed993b169.tar.gz
rust-c056cbbe05c4c9f59feffdc5c88609bed993b169.zip
Auto merge of #28868 - JIghtuse:str_doc, r=steveklabnik
-rw-r--r--src/libcollections/str.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index 124fe3fab56..5f1ace19f6d 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -867,6 +867,10 @@ impl str {
     /// ```rust,ignore
     /// assert_eq!(d, &["a", "b", "c"]);
     /// ```
+    ///
+    /// Use [`.split_whitespace()`][split_whitespace] for this behavior.
+    ///
+    /// [split_whitespace]: #method.split_whitespace
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn split<'a, P: Pattern<'a>>(&'a self, pat: P) -> Split<'a, P> {
         core_str::StrExt::split(self, pat)