]> Cypherpunks repositories - gostls13.git/commitdiff
doc/codewalk: gofmt pig.go
authorRuss Cox <rsc@golang.org>
Thu, 31 Jan 2013 21:42:26 +0000 (13:42 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 31 Jan 2013 21:42:26 +0000 (13:42 -0800)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7221079

doc/codewalk/pig.go

index 10963b4e4050997f49142657bb80a6479ef67e59..941daaed162eb4fe72879f6729efcb0b09017c77 100644 (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) {