ebitenutil: Update the doc

This commit is contained in:
Hajime Hoshi 2021-05-25 21:28:00 +09:00
parent 0247261d34
commit c0e12450df

View File

@ -32,7 +32,7 @@ import (
// How to solve path depends on your environment. This varies on your desktop or web browser.
// Note that this doesn't work on mobiles.
//
// For productions, instead of using NewImageFromFile, it is safer to embed your resources, e.g., with github.com/rakyll/statik .
// For productions, instead of using NewImageFromFile, it is safer to embed your resources with go:embed.
func NewImageFromFile(path string) (*ebiten.Image, image.Image, error) {
file, err := OpenFile(path)
if err != nil {