doc/codewalk: gofmt pig.go

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7221079
This commit is contained in:
Russ Cox 2013-01-31 13:42:26 -08:00
parent 5c659d7362
commit d314e3a68e

View File

@ -23,7 +23,7 @@ type score struct {
// An action transitions stochastically to a resulting score.
type action func(current score) (result score, turnIsOver bool)
// roll returns the (result, turnIsOver) outcome of simulating a die roll.
// roll returns the (result, turnIsOver) outcome of simulating a die roll.
// If the roll value is 1, then thisTurn score is abandoned, and the players'
// roles swap. Otherwise, the roll value is added to thisTurn.
func roll(s score) (score, bool) {