Skip to content

Commit 99f411d

Browse files
authored
Rollup merge of #83270 - steffahn:missing_word_in_skip_while_doc, r=joshtriplett
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 PR just changes a single word in documentation. `````@rustbot````` modify labels: A-iterators, T-doc, T-lang
2 parents 23128c4 + 99b2054 commit 99f411d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/iter/traits/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ pub trait Iterator {
10121012
///
10131013
/// Because the closure passed to `skip_while()` takes a reference, and many
10141014
/// iterators iterate over references, this leads to a possibly confusing
1015-
/// situation, where the type of the closure is a double reference:
1015+
/// situation, where the type of the closure argument is a double reference:
10161016
///
10171017
/// ```
10181018
/// let a = [-1, 0, 1];

0 commit comments

Comments
 (0)