浏览代码

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 = ""