Skip to content

Commit 7d52fa4

Browse files
committed
docs(device): fix ungrab example
1 parent 246d843 commit 7d52fa4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

types/device.d.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ function Device:grab() end
166166
---```lua
167167
---local Device = evdev.device.open
168168
---local dev = assert(Device("/dev/input/eventX"))
169+
---assert(dev:grap())
169170
---assert(dev:ungrab())
170171
---```
171172
---

0 commit comments

Comments
 (0)