소스 검색

Fix the numbers displayed for screen width.

Steve Thielemann 3 년 전
부모
커밋
ec4e2c57b0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      testdoor/testdoor.go

+ 1 - 1
testdoor/testdoor.go

@@ -376,7 +376,7 @@ func width_demo(d *door.Door) {
 		if y%10 == 0 {
 			line = strings.Repeat("1234567890", w/10)
 			for x := len(line); x < w; x++ {
-				line += strconv.Itoa(x % 10)
+				line += strconv.Itoa((x + 1) % 10)
 			}
 		} else {
 			line = ""