]> Cypherpunks repositories - gostls13.git/commitdiff
doc/play: use []rune insetead of []int.
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Thu, 15 Mar 2012 08:28:07 +0000 (19:28 +1100)
committerAndrew Gerrand <adg@golang.org>
Thu, 15 Mar 2012 08:28:07 +0000 (19:28 +1100)
R=golang-dev
CC=golang-dev
https://golang.org/cl/5823058

doc/play/solitaire.go

index 546bc102069be831f20a3f6f54d2a0027cbe8500..759d5428151b48bfa9c5b26f854dd2ea91e7d40f 100644 (file)
@@ -14,7 +14,7 @@ const N = 11 + 1 // length of a row (+1 for \n)
 // Periods represent illegal fields,
 // ● are pegs, and ○ are holes.
 
-var board = []int(
+var board = []rune(
        `...........
 ...........
 ....●●●....