diff --git a/docs/examples/sprites.html b/docs/examples/sprites.html index 66ce742af..10186d55d 100644 --- a/docs/examples/sprites.html +++ b/docs/examples/sprites.html @@ -133,9 +133,7 @@ func update(screen *ebiten.Image) error { msg := fmt.Sprintf(`FPS: %0.2f Num of sprites: %d Press <- or -> to change the number of sprites`, ebiten.CurrentFPS(), sprites.num) - if err := ebitenutil.DebugPrint(screen, msg); err != nil { - return err - } + ebitenutil.DebugPrint(screen, msg) return nil } diff --git a/examples/sprites/main.go b/examples/sprites/main.go index 3fe39b50d..d4580c3ea 100644 --- a/examples/sprites/main.go +++ b/examples/sprites/main.go @@ -120,9 +120,7 @@ func update(screen *ebiten.Image) error { msg := fmt.Sprintf(`FPS: %0.2f Num of sprites: %d Press <- or -> to change the number of sprites`, ebiten.CurrentFPS(), sprites.num) - if err := ebitenutil.DebugPrint(screen, msg); err != nil { - return err - } + ebitenutil.DebugPrint(screen, msg) return nil }