Skip to content

Commit 2d74caf

Browse files
committed
Fix documentation typo
Event attributes are not positional
1 parent ae49f32 commit 2d74caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcod/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
match event:
6767
case tcod.event.Quit():
6868
raise SystemExit()
69-
case tcod.event.KeyDown(sym) if sym in KEY_COMMANDS:
69+
case tcod.event.KeyDown(sym=sym) if sym in KEY_COMMANDS:
7070
print(f"Command: {KEY_COMMANDS[sym]}")
7171
case tcod.event.KeyDown(sym=sym, scancode=scancode, mod=mod, repeat=repeat):
7272
print(f"KeyDown: {sym=}, {scancode=}, {mod=}, {repeat=}")

0 commit comments

Comments
 (0)