summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-01-31 13:42:26 -0800
committerRuss Cox <rsc@golang.org>2013-01-31 13:42:26 -0800
commitd314e3a68e08fd0769847ca4eb6f9fef335266bd (patch)
tree8aa1a4aa330a8cbd8d2991b8b537fd7737470001
parent5c659d736241f4904eb3d513f9f585397a3ed8af (diff)
downloadgo-git-d314e3a68e08fd0769847ca4eb6f9fef335266bd.tar.gz
doc/codewalk: gofmt pig.go
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7221079
-rw-r--r--doc/codewalk/pig.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/codewalk/pig.go b/doc/codewalk/pig.go
index 10963b4e40..941daaed16 100644
--- a/doc/codewalk/pig.go
+++ b/doc/codewalk/pig.go
@@ -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) {