We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f60768 commit 836be40Copy full SHA for 836be40
src/libcollections/str.rs
@@ -867,6 +867,10 @@ impl str {
867
/// ```rust,ignore
868
/// assert_eq!(d, &["a", "b", "c"]);
869
/// ```
870
+ ///
871
+ /// Use [`.split_whitespace()`][split_whitespace] for this behavior.
872
873
+ /// [split_whitespace]: #method.split_whitespace
874
#[stable(feature = "rust1", since = "1.0.0")]
875
pub fn split<'a, P: Pattern<'a>>(&'a self, pat: P) -> Split<'a, P> {
876
core_str::StrExt::split(self, pat)
0 commit comments