summaryrefslogtreecommitdiff
path: root/doc/codewalk/pig.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/codewalk/pig.go')
-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 10963b4e4..941daaed1 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) {