diff --git a/crate/guides/events.md b/crate/guides/events.md index 2d3cb34..5e7cf15 100644 --- a/crate/guides/events.md +++ b/crate/guides/events.md @@ -70,7 +70,7 @@ keyboard_ev("input", Msg::PutTheHammerDown) Note that in the examples for input_ev and keyboard_ev, the syntax is simplified since we're only passing the field text, and keyboard event respectively to the Msg. The input_ev -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 to pass something other than, or more than just the input text (Or KeyboardEvent for keyboard_ev, or Event for raw_ev described below), you can't use this shorthand, and would have to do something like this intead,