We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d14ccb commit a4a7166Copy full SHA for a4a7166
src/libstd_unicode/u_str.rs
@@ -17,8 +17,13 @@ use core::char;
17
use core::iter::{Filter, FusedIterator};
18
use core::str::Split;
19
20
-/// An iterator over the non-whitespace substrings of a string,
21
-/// separated by any amount of whitespace.
+/// An iterator over sub-slices of the original string slice.
+///
22
+/// This struct is created by the [`split_whitespace()`] method on [`str`].
23
+/// See its documentation for more.
24
25
+/// [`split_whitespace()`]: ../../std/primitive.str.html#method.split_whitespace
26
+/// [`str`]: ../../std/primitive.str.html
27
#[stable(feature = "split_whitespace", since = "1.1.0")]
28
pub struct SplitWhitespace<'a> {
29
inner: Filter<Split<'a, fn(char) -> bool>, fn(&&str) -> bool>,
0 commit comments