For
example should be used instead while
in WHILE_LET_ON_ITERATOR
`For` example should be used instead `while` in WHILE_LET_ON_ITERATOR For example should be used instead while in WHILE_LET_ON_ITERATOR Revert some changes Fix cargo dev fmt
This commit is contained in:
parent
71f2de96ee
commit
dc7f227593
@ -346,7 +346,14 @@
|
||||
///
|
||||
/// ### Example
|
||||
/// ```ignore
|
||||
/// while let Some(val) = iter() {
|
||||
/// while let Some(val) = iter.next() {
|
||||
/// ..
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
/// ```ignore
|
||||
/// for val in &mut iter {
|
||||
/// ..
|
||||
/// }
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user