Skip to content

Commit 0bd052b

Browse files
yllmisyllmis
authored andcommitted
update
1 parent d1df66f commit 0bd052b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/clippy/clippy2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
fn main() {
77
let mut res = 42;
88
let option = Some(12);
9-
while let Some(x) = option {
9+
if let Some(x) = option {
1010
res += x;
1111
}
1212
println!("{}", res);

0 commit comments

Comments
 (0)