소스 검색

Correction

Piotr Czajkowski 4 년 전
부모
커밋
be8ff5b4fd
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      day12/day12.go

+ 1 - 2
day12/day12.go

@@ -56,8 +56,7 @@ func rotate(currentDirection string, item sequence) string {
 	change := 0
 
 	switch item.value {
-	case 0:
-	case 360:
+	case 0, 360:
 		return currentDirection
 	case 90:
 		change = 1