mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 13:43:04 +00:00
Fix typo/inaccuracy in the documentation of Iterator::skip_while
One of the examples used to say “this leads to a possibly confusing situation, where the type of the closure is a double reference” while _actually_ referring to the type of the closure _argument_.
This commit is contained in:
parent
7a7bbdb3ab
commit
99b2054fe5
@ -1012,7 +1012,7 @@ pub trait Iterator {
|
||||
///
|
||||
/// Because the closure passed to `skip_while()` takes a reference, and many
|
||||
/// iterators iterate over references, this leads to a possibly confusing
|
||||
/// situation, where the type of the closure is a double reference:
|
||||
/// situation, where the type of the closure argument is a double reference:
|
||||
///
|
||||
/// ```
|
||||
/// let a = [-1, 0, 1];
|
||||
|
Loading…
Reference in New Issue
Block a user