From 07c8cb0e2315ce6a1116e69e52afe15db57e7b46 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 20 Sep 2021 15:22:46 +0900 Subject: [PATCH] examples: Misspelling (//go:generated -> //go:generate) --- examples/additive/main.go | 4 ++-- examples/address/main.go | 4 ++-- examples/airship/main.go | 4 ++-- examples/alphablending/main.go | 4 ++-- examples/animation/main.go | 4 ++-- examples/audiopanning/main.go | 4 ++-- examples/blur/main.go | 4 ++-- examples/camera/main.go | 4 ++-- examples/clip/main.go | 4 ++-- examples/contextlost/main.go | 4 ++-- examples/drag/main.go | 4 ++-- examples/filter/main.go | 4 ++-- examples/flood/main.go | 4 ++-- examples/fullscreen/main.go | 4 ++-- examples/hsv/main.go | 4 ++-- examples/hue/main.go | 4 ++-- examples/infinitescroll/main.go | 4 ++-- examples/mascot/main.go | 4 ++-- examples/masking/main.go | 4 ++-- examples/minify/main.go | 4 ++-- examples/mosaic/main.go | 4 ++-- examples/particles/main.go | 4 ++-- examples/perspective/main.go | 4 ++-- examples/raycasting/main.go | 4 ++-- examples/rotate/main.go | 4 ++-- examples/shader/main.go | 4 ++-- examples/sprites/main.go | 4 ++-- examples/spriteshd/main.go | 4 ++-- examples/tiles/main.go | 4 ++-- examples/touch/main.go | 4 ++-- examples/ui/main.go | 4 ++-- examples/windowsize/main.go | 4 ++-- 32 files changed, 64 insertions(+), 64 deletions(-) diff --git a/examples/additive/main.go b/examples/additive/main.go index 049d5b4fc..8192554f3 100644 --- a/examples/additive/main.go +++ b/examples/additive/main.go @@ -70,8 +70,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/address/main.go b/examples/address/main.go index fdabd81e2..9bd18c8e4 100644 --- a/examples/address/main.go +++ b/examples/address/main.go @@ -36,8 +36,8 @@ const ( var ebitenImage *ebiten.Image func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/airship/main.go b/examples/airship/main.go index 8c21bf7cd..47b8dff62 100644 --- a/examples/airship/main.go +++ b/examples/airship/main.go @@ -46,8 +46,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/alphablending/main.go b/examples/alphablending/main.go index 2a404af55..ddf4d6d8c 100644 --- a/examples/alphablending/main.go +++ b/examples/alphablending/main.go @@ -79,8 +79,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/animation/main.go b/examples/animation/main.go index 205448e02..ce62bb62b 100644 --- a/examples/animation/main.go +++ b/examples/animation/main.go @@ -65,8 +65,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Runner_png)) diff --git a/examples/audiopanning/main.go b/examples/audiopanning/main.go index c67d4b0f3..501b6c493 100644 --- a/examples/audiopanning/main.go +++ b/examples/audiopanning/main.go @@ -122,8 +122,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/blur/main.go b/examples/blur/main.go index effbf9845..9dac561c1 100644 --- a/examples/blur/main.go +++ b/examples/blur/main.go @@ -70,8 +70,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.FiveYears_jpg)) diff --git a/examples/camera/main.go b/examples/camera/main.go index 439cdae9c..291d2e29a 100644 --- a/examples/camera/main.go +++ b/examples/camera/main.go @@ -53,8 +53,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Tiles_png)) diff --git a/examples/clip/main.go b/examples/clip/main.go index 09bf0efda..0a4b476f5 100644 --- a/examples/clip/main.go +++ b/examples/clip/main.go @@ -73,8 +73,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/contextlost/main.go b/examples/contextlost/main.go index 161f210bf..14f7e01c9 100644 --- a/examples/contextlost/main.go +++ b/examples/contextlost/main.go @@ -89,8 +89,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/drag/main.go b/examples/drag/main.go index f7bc3a08d..1f84e76fa 100644 --- a/examples/drag/main.go +++ b/examples/drag/main.go @@ -192,8 +192,8 @@ type Game struct { var ebitenImage *ebiten.Image func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/filter/main.go b/examples/filter/main.go index 7c3f5fdbc..e8f653c93 100644 --- a/examples/filter/main.go +++ b/examples/filter/main.go @@ -66,8 +66,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/flood/main.go b/examples/flood/main.go index d11488528..945021414 100644 --- a/examples/flood/main.go +++ b/examples/flood/main.go @@ -91,8 +91,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/fullscreen/main.go b/examples/fullscreen/main.go index 22cbcebaf..0073114ab 100644 --- a/examples/fullscreen/main.go +++ b/examples/fullscreen/main.go @@ -43,8 +43,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/hsv/main.go b/examples/hsv/main.go index e8870d649..64f07d4c9 100644 --- a/examples/hsv/main.go +++ b/examples/hsv/main.go @@ -139,8 +139,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/hue/main.go b/examples/hue/main.go index e540a7f8f..984f7790e 100644 --- a/examples/hue/main.go +++ b/examples/hue/main.go @@ -65,8 +65,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/infinitescroll/main.go b/examples/infinitescroll/main.go index 29fd6a6ce..a5e6ed085 100644 --- a/examples/infinitescroll/main.go +++ b/examples/infinitescroll/main.go @@ -39,8 +39,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Tile_png)) diff --git a/examples/mascot/main.go b/examples/mascot/main.go index 72c3bf48e..4d8f9f196 100644 --- a/examples/mascot/main.go +++ b/examples/mascot/main.go @@ -43,8 +43,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img1, _, err := image.Decode(bytes.NewReader(rmascot.Out01_png)) diff --git a/examples/masking/main.go b/examples/masking/main.go index 58df2f661..2a0a56070 100644 --- a/examples/masking/main.go +++ b/examples/masking/main.go @@ -42,8 +42,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/minify/main.go b/examples/minify/main.go index 7c6781fc0..0c1a467e9 100644 --- a/examples/minify/main.go +++ b/examples/minify/main.go @@ -98,8 +98,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/mosaic/main.go b/examples/mosaic/main.go index b7b071542..2b78d44f0 100644 --- a/examples/mosaic/main.go +++ b/examples/mosaic/main.go @@ -39,8 +39,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/particles/main.go b/examples/particles/main.go index 4543ef936..4ba6daf0d 100644 --- a/examples/particles/main.go +++ b/examples/particles/main.go @@ -46,8 +46,8 @@ const ( var smokeImage *ebiten.Image func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Smoke_png)) diff --git a/examples/perspective/main.go b/examples/perspective/main.go index 23d2ff953..467737ccc 100644 --- a/examples/perspective/main.go +++ b/examples/perspective/main.go @@ -70,8 +70,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/raycasting/main.go b/examples/raycasting/main.go index f7e3a78bd..96f858f83 100644 --- a/examples/raycasting/main.go +++ b/examples/raycasting/main.go @@ -47,8 +47,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Tile_png)) diff --git a/examples/rotate/main.go b/examples/rotate/main.go index 43134513c..8eeacb11e 100644 --- a/examples/rotate/main.go +++ b/examples/rotate/main.go @@ -70,8 +70,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/shader/main.go b/examples/shader/main.go index ae341cf93..c170b261f 100644 --- a/examples/shader/main.go +++ b/examples/shader/main.go @@ -42,8 +42,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(resources.Gopher_png)) diff --git a/examples/sprites/main.go b/examples/sprites/main.go index 48619f685..00a799dcd 100644 --- a/examples/sprites/main.go +++ b/examples/sprites/main.go @@ -42,8 +42,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/spriteshd/main.go b/examples/spriteshd/main.go index c1e407e1e..c6cae5c37 100644 --- a/examples/spriteshd/main.go +++ b/examples/spriteshd/main.go @@ -44,8 +44,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Ebiten_png)) diff --git a/examples/tiles/main.go b/examples/tiles/main.go index 40af32377..ad0b5f8f9 100644 --- a/examples/tiles/main.go +++ b/examples/tiles/main.go @@ -44,8 +44,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Tiles_png)) diff --git a/examples/touch/main.go b/examples/touch/main.go index 328704642..c1b23cb03 100644 --- a/examples/touch/main.go +++ b/examples/touch/main.go @@ -229,8 +229,8 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) { } func main() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg)) diff --git a/examples/ui/main.go b/examples/ui/main.go index 00aaa9cd8..68c744b9a 100644 --- a/examples/ui/main.go +++ b/examples/ui/main.go @@ -46,8 +46,8 @@ var ( ) func init() { - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.UI_png)) diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go index bc3d3f0dc..eaf6c49e8 100644 --- a/examples/windowsize/main.go +++ b/examples/windowsize/main.go @@ -377,8 +377,8 @@ func main() { w, h := ebiten.ScreenSizeInFullscreen() fmt.Printf("Screen size in fullscreen: %d, %d\n", w, h) - // Decode an image from a byte slice. - // Now this image file's byte slice is generated with //go:generated for Go 1.15 or older. + // Decode an image from the image file's byte slice. + // Now the byte slice is generated with //go:generate for Go 1.15 or older. // If you use Go 1.16 or newer, it is strongly recommended to use //go:embed to embed the image file. // See https://pkg.go.dev/embed for more details. img, _, err := image.Decode(bytes.NewReader(images.Gophers_jpg))