Skip to content

Commit

Permalink
Update events.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TatriX authored and David-OConnor committed Dec 17, 2019
1 parent c23f4d6 commit 6e79997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crate/guides/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6e79997

Please sign in to comment.