From d05afcbcfa84012fd802e1ba2f06b7796065320a Mon Sep 17 00:00:00 2001 From: BioErrorLog <51422347+bioerrorlog@users.noreply.github.com> Date: Fri, 8 Dec 2023 13:35:52 +0900 Subject: [PATCH] all: fix typos (#2859) --- CONTRIBUTING.md | 2 +- examples/audio/main.go | 2 +- examples/audiopanning/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 48ac60c6b..8275f0b7d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,7 +22,7 @@ You can ask us at these communities: ## Following the Go convention -Please follow the Go convension like [Effective Go](https://golang.org/doc/effective_go.html). +Please follow the Go convention like [Effective Go](https://golang.org/doc/effective_go.html). For example, formatting by `go fmt` is required. ## Adding copyright comments to each file diff --git a/examples/audio/main.go b/examples/audio/main.go index a4e167c7b..ce8bc1780 100644 --- a/examples/audio/main.go +++ b/examples/audio/main.go @@ -344,7 +344,7 @@ func (p *Player) draw(screen *ebiten.Image) { cy := float32(y) + float32(h)/2 vector.DrawFilledCircle(screen, cx, cy, 12, playerCurrentColor, true) - // Compose the curren time text. + // Compose the current time text. m := (c / time.Minute) % 100 s := (c / time.Second) % 60 currentTimeStr := fmt.Sprintf("%02d:%02d", m, s) diff --git a/examples/audiopanning/main.go b/examples/audiopanning/main.go index 6ee5fbe43..aeca52b61 100644 --- a/examples/audiopanning/main.go +++ b/examples/audiopanning/main.go @@ -85,7 +85,7 @@ func (g *Game) initAudioIfNeeded() { g.player.Play() } -// time is whithin the 0 ... 1 range +// time is within the 0 ... 1 range func lerp(a, b, t float64) float64 { return a*(1-t) + b*t }