diff options
| author | jEzEk <[email protected]> | 2021-03-07 15:13:16 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-07 15:13:16 +0100 |
| commit | 06eab223430e738079eb644911256671a319980e (patch) | |
| tree | 1b59bb40d9a996c51747f36c679f9b340356bf02 | |
| parent | c3652e28fc56c658e9011742567e52ee2f22ed98 (diff) | |
Add missing "\n" at the end of fmt.Printf
| -rw-r--r-- | examples/create-window/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/create-window/main.go b/examples/create-window/main.go index c096a91..a637d0e 100644 --- a/examples/create-window/main.go +++ b/examples/create-window/main.go @@ -116,7 +116,7 @@ func main() { // See https://pkg.go.dev/github.com/jezek/xgb/xproto#KeyPressEvent // for documentation about a key press event. kpe := ev.(xproto.KeyPressEvent) - fmt.Printf("Key pressed: %d", kpe.Detail) + fmt.Printf("Key pressed: %d\n", kpe.Detail) // The Detail value depends on the keyboard layout, // for QWERTY, q is #24. if kpe.Detail == 24 { |
