소스 검색

Correction

Piotr Czajkowski 2 주 전
부모
커밋
de0eee810b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      01/code.go

+ 1 - 1
01/code.go

@@ -63,7 +63,7 @@ func parts(rotations []Rotation) (int, int) {
 		}
 
 		if dial < 0 {
-			if rotation.Clicks != abs(dial) {
+			if left != abs(dial) {
 				passedZeros++
 			}
 		}