Skip to content

Commit fb088b7

Browse files
committed
all: fix sample code in README
1 parent 79e1ef9 commit fb088b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (g *Game) Update() error {
3636
ctx.Loop(loopCount, func(index int) {
3737
// Specify a presssing-button event handler by On.
3838
ctx.Button(fmt.Sprintf("Button %d", index)).On(func() {
39-
fmt.Printf("Button %d is pressed")
39+
fmt.Printf("Button %d is pressed", index)
4040
})
4141
})
4242
})

0 commit comments

Comments
 (0)