浏览代码

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 dial < 0 {
-			if rotation.Clicks != abs(dial) {
+			if left != abs(dial) {
 				passedZeros++
 				passedZeros++
 			}
 			}
 		}
 		}