Commit d314e3a6 authored by Russ Cox's avatar Russ Cox

doc/codewalk: gofmt pig.go

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7221079
parent 5c659d73
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment