Skip to content

Commit a4a7166

Browse files
committed
Modify SplitWhitespace's description
1 parent 5d14ccb commit a4a7166

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/libstd_unicode/u_str.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ use core::char;
1717
use core::iter::{Filter, FusedIterator};
1818
use core::str::Split;
1919

20-
/// An iterator over the non-whitespace substrings of a string,
21-
/// separated by any amount of whitespace.
20+
/// An iterator over sub-slices of the original string slice.
21+
///
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
2227
#[stable(feature = "split_whitespace", since = "1.1.0")]
2328
pub struct SplitWhitespace<'a> {
2429
inner: Filter<Split<'a, fn(char) -> bool>, fn(&&str) -> bool>,

0 commit comments

Comments
 (0)