doc: Handle errors

This commit is contained in:
Hajime Hoshi 2016-12-07 11:29:27 +09:00
parent 51da710860
commit 20ae2e0fc8
2 changed files with 6 additions and 2 deletions

View File

@ -85,7 +85,9 @@ import (
) )
func update(screen *ebiten.Image) error { func update(screen *ebiten.Image) error {
ebitenutil.DebugPrint(screen, "Hello world!") if err := ebitenutil.DebugPrint(screen, "Hello world!"); err != nil {
return err
}
return nil return nil
} }

View File

@ -117,7 +117,9 @@ import (
) )
func update(screen *ebiten.Image) error { func update(screen *ebiten.Image) error {
ebitenutil.DebugPrint(screen, "Hello world!") if err := ebitenutil.DebugPrint(screen, "Hello world!"); err != nil {
return err
}
return nil return nil
} }