Skip to content

Commit a8064e7

Browse files
author
Benjamin Dahlmanns
committed
Minor code cleanup
1 parent 3d90ad4 commit a8064e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

uinput.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ type vMouse struct {
135135
deviceFile *os.File
136136
}
137137

138-
// A TouchPad is an input device that uses absolute axis events, meaning that you can specifiy
138+
// A TouchPad is an input device that uses absolute axis events, meaning that you can specify
139139
// the exact position the cursor should move to. Therefore, it is necessary to define the size
140140
// of the rectangle in which the cursor may move upon creation of the device.
141141
type TouchPad interface {

uinput_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ func TestBasicTouchPadMoves(t *testing.T) {
9393
t.Fatalf("Failed to create the virtual touch pad. Last error was: %s\n", err)
9494
}
9595

96-
err = absDev.MoveTo(0,0)
96+
err = absDev.MoveTo(0, 0)
9797
if err != nil {
9898
t.Fatalf("Failed to move cursor to initial position. Last error was: %s\n", err)
9999
}
100100

101101
err = absDev.MoveTo(100, 200)
102-
if (err != nil) {
102+
if err != nil {
103103
t.Fatalf("Failed to move cursor to position x:100, y:200. Last error was: %s\n", err)
104104
}
105105
err = absDev.RightClick()

0 commit comments

Comments
 (0)