docs: Draw function's signature was wrong

This commit is contained in:
Hajime Hoshi 2020-04-01 04:23:55 +09:00
parent cd825f34f6
commit 4f335c027e

4
run.go
View File

@ -30,7 +30,7 @@ type Game interface {
//
// The Draw function's definition is:
//
// Draw(screen *Image) error
// Draw(screen *Image)
//
// The give argument represents a screen image. Whether the updated content is used or not
// depends on the existence of Draw definition.
@ -48,7 +48,7 @@ type Game interface {
//
// Draw is an optional function for backward compatibility.
//
// Draw(screen *Image) error
// Draw(screen *Image)
// Layout accepts a native outside size in device-independent pixels and returns the game's logical screen
// size.