Skip to content

Commit c056cbb

Browse files
committed
Auto merge of #28868 - JIghtuse:str_doc, r=steveklabnik
2 parents add6b90 + 836be40 commit c056cbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcollections/str.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,10 @@ impl str {
867867
/// ```rust,ignore
868868
/// assert_eq!(d, &["a", "b", "c"]);
869869
/// ```
870+
///
871+
/// Use [`.split_whitespace()`][split_whitespace] for this behavior.
872+
///
873+
/// [split_whitespace]: #method.split_whitespace
870874
#[stable(feature = "rust1", since = "1.0.0")]
871875
pub fn split<'a, P: Pattern<'a>>(&'a self, pat: P) -> Split<'a, P> {
872876
core_str::StrExt::split(self, pat)

0 commit comments

Comments
 (0)