Skip to content

Commit 1eadb71

Browse files
docs(evdev): generate API docs (#11)
Co-authored-by: haithium <128622475+haithium@users.noreply.github.com>
1 parent dd319d3 commit 1eadb71

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/evdev/api/device.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,6 @@ Release exclusive control of the input device.
335335
```lua
336336
local Device = evdev.device.open
337337
local dev = assert(Device("/dev/input/eventX"))
338-
assert(dev:grap())
338+
assert(dev:grab())
339339
assert(dev:ungrab())
340340
```

docs/src/evdev/api/devices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ List evdev input devices under `/dev/input`.
120120
**Example**:
121121

122122
```lua
123-
local devs = assert(evdev.devices.list_devices()
123+
local devs = assert(evdev.devices.list_devices())
124124
for _, dev in ipairs(devs) do
125125
print(dev.path, dev.name)
126126
end

0 commit comments

Comments
 (0)