We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1df66f commit 0bd052bCopy full SHA for 0bd052b
exercises/clippy/clippy2.rs
@@ -6,7 +6,7 @@
6
fn main() {
7
let mut res = 42;
8
let option = Some(12);
9
- while let Some(x) = option {
+ if let Some(x) = option {
10
res += x;
11
}
12
println!("{}", res);
0 commit comments