Skip to content

Commit 6e12a2f

Browse files
authored
Rollup merge of rust-lang#82215 - TaKO8Ki:replace-if-let-while-let, r=varkor
Replace if-let and while-let with `if let` and `while let` This pull request replaces if-let and while-let with `if let` and `while let`. closes rust-lang#82205
2 parents a149f61 + 2d60a61 commit 6e12a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/loops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ declare_clippy_lint! {
340340
/// ```
341341
pub WHILE_LET_ON_ITERATOR,
342342
style,
343-
"using a while-let loop instead of a for loop on an iterator"
343+
"using a `while let` loop instead of a for loop on an iterator"
344344
}
345345

346346
declare_clippy_lint! {

0 commit comments

Comments
 (0)