Skip to content

Commit 6e79997

Browse files
TatriXDavid-OConnor
authored andcommitted
Update events.md
1 parent c23f4d6 commit 6e79997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crate/guides/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ keyboard_ev("input", Msg::PutTheHammerDown)
7070

7171
Note that in the examples for input_ev and keyboard_ev, the syntax is simplified since
7272
we're only passing the field text, and keyboard event respectively to the Msg. The input_ev
73-
example is Rust shorthand for ```input_ev("input, |text| Msg::NewWords(text)```. If you were
73+
example is Rust shorthand for ```input_ev("input", |text| Msg::NewWords(text))```. If you were
7474
to pass something other than, or more than just the input text (Or KeyboardEvent for keyboard_ev,
7575
or Event for raw_ev described below),
7676
you can't use this shorthand, and would have to do something like this intead,

0 commit comments

Comments
 (0)