diff --git a/examples/2048/2048/input.go b/examples/2048/2048/input.go index 3de49c0ca..f69538480 100644 --- a/examples/2048/2048/input.go +++ b/examples/2048/2048/input.go @@ -216,7 +216,7 @@ func (i *Input) Update() { } } -// Dir returns a currenly pressed direction. +// Dir returns a currently pressed direction. // Dir returns false if no direction key is pressed. func (i *Input) Dir() (Dir, bool) { for k, d := range dirKeys { diff --git a/examples/2048/2048/tile.go b/examples/2048/2048/tile.go index bd29f3759..0b7f1db39 100644 --- a/examples/2048/2048/tile.go +++ b/examples/2048/2048/tile.go @@ -34,7 +34,7 @@ type TileData struct { y int } -// Tile represents a tile infomation including TileData and animation states. +// Tile represents a tile information including TileData and animation states. type Tile struct { current TileData diff --git a/genkeys.go b/genkeys.go index e68395d05..1e0c96457 100644 --- a/genkeys.go +++ b/genkeys.go @@ -142,7 +142,7 @@ import ( // A Key represents a keyboard key. // These keys represent pysical keys of US keyboard. -// For example, KeyQ represents Q key on US keybaords and ' (quote) key on Dvorak keyboards. +// For example, KeyQ represents Q key on US keyboards and ' (quote) key on Dvorak keyboards. type Key int // Keys diff --git a/internal/ui/hideconsole_windows.go b/internal/ui/hideconsole_windows.go index 65f8fc977..80a0c98af 100644 --- a/internal/ui/hideconsole_windows.go +++ b/internal/ui/hideconsole_windows.go @@ -86,7 +86,7 @@ func hideConsoleWindowOnWindows() { // Ignore errors return } - // Get the process ID of the console's creater. + // Get the process ID of the console's creator. cpid, err := getWindowThreadProcessId(w) if err != nil { // Ignore errors diff --git a/keys.go b/keys.go index 5d1b45b5a..317615c6d 100644 --- a/keys.go +++ b/keys.go @@ -22,7 +22,7 @@ import ( // A Key represents a keyboard key. // These keys represent pysical keys of US keyboard. -// For example, KeyQ represents Q key on US keybaords and ' (quote) key on Dvorak keyboards. +// For example, KeyQ represents Q key on US keyboards and ' (quote) key on Dvorak keyboards. type Key int // Keys