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:
alexey semenyuk 2022-06-18 19:42:39 +00:00 committed by alex-semenyuk
parent 71f2de96ee
commit dc7f227593

View File

@ -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 {
/// ..
/// }
/// ```