Auto merge of #28868 - JIghtuse:str_doc, r=steveklabnik

This commit is contained in:
bors 2015-10-07 13:58:51 +00:00
commit c056cbbe05
1 changed files with 4 additions and 0 deletions

View File

@ -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)