Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Jan 18, 2019
1 parent 78ed824 commit dd59d8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
//
// func main() {
// // Call ebiten.Run to start your game loop.
// ebiten.Run(update, 320, 240, 2, "Your game's title")
// if err := ebiten.Run(update, 320, 240, 2, "Your game's title"); err != nil {
// log.Fatal(err)
// }
// }
//
// The EBITEN_SCREENSHOT_KEY environment variable specifies the key
Expand Down
4 changes: 2 additions & 2 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func (i *Image) ColorModel() color.Model {
// Note that important logic should not rely on At result since
// At might include a very slight error on some machines.
//
// At can't be called before the main loop (ebiten.Run) starts (as of version 1.4.0-alpha).
// At can't be called outside the main loop (ebiten.Run's updating function) starts (as of version 1.4.0-alpha).
func (i *Image) At(x, y int) color.Color {
if i.isDisposed() {
return color.RGBA{}
Expand All @@ -550,7 +550,7 @@ func (i *Image) At(x, y int) color.Color {
//
// Set loads pixels from GPU to system memory if necessary, which means that Set can be slow.
//
// Set can't be called before the main loop (ebiten.Run) starts.
// Set can't be called outside the main loop (ebiten.Run's updating function) starts.
//
// If the image is disposed, Set does nothing.
func (img *Image) Set(x, y int, clr color.Color) {
Expand Down

0 comments on commit dd59d8a

Please sign in to comment.