Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 076ea1a

Browse files
Fix regression
1 parent 9c3b8ef commit 076ea1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/year2022/day20.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn decrypt(input: &[i64], key: i64, rounds: usize) -> i64 {
107107
}
108108

109109
let indices: Vec<_> = mixed.into_iter().flatten().flatten().collect();
110-
let zeroth = indices.iter().position(|&i| numbers[i] == 0).unwrap();
110+
let zeroth = indices.iter().position(|&i| input[i] == 0).unwrap();
111111

112112
[1000, 2000, 3000]
113113
.iter()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /