Skip to content

Commit

Permalink
Rollup merge of rust-lang#58141 - lukaslueg:patch-1, r=steveklabnik
Browse files Browse the repository at this point in the history
Remove weasel word in docs for iter's take_while()

The phrase "... or some similar thing." is very vague and contributes nothing to understanding the example. Simply removed.
  • Loading branch information
kennytm authored Feb 5, 2019
2 parents 3fc7373 + e3bbd67 commit f107710
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libcore/iter/traits/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -952,8 +952,7 @@ pub trait Iterator {
/// ```
///
/// The `3` is no longer there, because it was consumed in order to see if
/// the iteration should stop, but wasn't placed back into the iterator or
/// some similar thing.
/// the iteration should stop, but wasn't placed back into the iterator.
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> where
Expand Down

0 comments on commit f107710

Please sign in to comment.