From a8064e7d0dadd6a128bc77b5bc77c4ef6120dd18 Mon Sep 17 00:00:00 2001 From: Benjamin Dahlmanns Date: Sun, 4 Jun 2017 11:35:46 +0200 Subject: [PATCH] Minor code cleanup --- uinput.go | 2 +- uinput_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uinput.go b/uinput.go index a2e1d98..f9346bf 100644 --- a/uinput.go +++ b/uinput.go @@ -135,7 +135,7 @@ type vMouse struct { deviceFile *os.File } -// A TouchPad is an input device that uses absolute axis events, meaning that you can specifiy +// A TouchPad is an input device that uses absolute axis events, meaning that you can specify // the exact position the cursor should move to. Therefore, it is necessary to define the size // of the rectangle in which the cursor may move upon creation of the device. type TouchPad interface { diff --git a/uinput_test.go b/uinput_test.go index e2371fd..7817a92 100644 --- a/uinput_test.go +++ b/uinput_test.go @@ -93,13 +93,13 @@ func TestBasicTouchPadMoves(t *testing.T) { t.Fatalf("Failed to create the virtual touch pad. Last error was: %s\n", err) } - err = absDev.MoveTo(0,0) + err = absDev.MoveTo(0, 0) if err != nil { t.Fatalf("Failed to move cursor to initial position. Last error was: %s\n", err) } err = absDev.MoveTo(100, 200) - if (err != nil) { + if err != nil { t.Fatalf("Failed to move cursor to position x:100, y:200. Last error was: %s\n", err) } err = absDev.RightClick()