Pārlūkot izejas kodu

Fix the numbers displayed for screen width.

Steve Thielemann 3 gadi atpakaļ
vecāks
revīzija
ec4e2c57b0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 = ""