We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c23f4d6 commit 6e79997Copy full SHA for 6e79997
crate/guides/events.md
@@ -70,7 +70,7 @@ keyboard_ev("input", Msg::PutTheHammerDown)
70
71
Note that in the examples for input_ev and keyboard_ev, the syntax is simplified since
72
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
+example is Rust shorthand for ```input_ev("input", |text| Msg::NewWords(text))```. If you were
74
to pass something other than, or more than just the input text (Or KeyboardEvent for keyboard_ev,
75
or Event for raw_ev described below),
76
you can't use this shorthand, and would have to do something like this intead,
0 commit comments