docs: Draw function's signature was wrong

This commit is contained in:
Hajime Hoshi 2020-04-01 04:23:55 +09:00
parent 5300b0f498
commit de786035c7

4
run.go
View File

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