Skip to content

Commit

Permalink
doc: Mention split_whitespace in split doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JIghtuse committed Oct 6, 2015
1 parent 2f60768 commit 836be40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libcollections/str.rs
Expand Up @@ -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)
Expand Down

0 comments on commit 836be40

Please sign in to comment.