From c3652e28fc56c658e9011742567e52ee2f22ed98 Mon Sep 17 00:00:00 2001 From: Lenni Date: Sun, 7 Mar 2021 09:26:04 +0100 Subject: rephrased weird comment --- examples/create-window/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/create-window/main.go') diff --git a/examples/create-window/main.go b/examples/create-window/main.go index 9d1784c..c096a91 100644 --- a/examples/create-window/main.go +++ b/examples/create-window/main.go @@ -107,10 +107,10 @@ func main() { } // This is how accepting events work: - // The application checks what event we got - // (the event must be registered using either xproto.CreateWindow (see l.35) or - // xproto.ChangeWindowAttributes (see l.50)). - // and reacts to it accordingly. All events are defined in the xproto subpackage. + // The application checks what event we got and reacts to it + // accordingly. All events are defined in the xproto subpackage. + // To receive events, we have to first register it using + // either xproto.CreateWindow or xproto.ChangeWindowAttributes. switch ev.(type) { case xproto.KeyPressEvent: // See https://pkg.go.dev/github.com/jezek/xgb/xproto#KeyPressEvent -- cgit v1.2.3