mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
doc: Handle errors
This commit is contained in:
parent
51da710860
commit
20ae2e0fc8
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user