Skip to content

Commit

Permalink
Modify SplitWhitespace's description
Browse files Browse the repository at this point in the history
  • Loading branch information
donniebishop committed Mar 30, 2017
1 parent 5d14ccb commit a4a7166
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/libstd_unicode/u_str.rs
Expand Up @@ -17,8 +17,13 @@ use core::char;
use core::iter::{Filter, FusedIterator};
use core::str::Split;

/// An iterator over the non-whitespace substrings of a string,
/// separated by any amount of whitespace.
/// An iterator over sub-slices of the original string slice.
///
/// This struct is created by the [`split_whitespace()`] method on [`str`].
/// See its documentation for more.
///
/// [`split_whitespace()`]: ../../std/primitive.str.html#method.split_whitespace
/// [`str`]: ../../std/primitive.str.html
#[stable(feature = "split_whitespace", since = "1.1.0")]
pub struct SplitWhitespace<'a> {
inner: Filter<Split<'a, fn(char) -> bool>, fn(&&str) -> bool>,
Expand Down

0 comments on commit a4a7166

Please sign in to comment.