mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Merge pull request #272 from robbystk/tutorial-1-typos
Fix a few typos in tutorial 1
This commit is contained in:
commit
e63e1e4916
@ -89,7 +89,7 @@ fn main() {
|
||||
It's rather easy to identify the two steps involved.
|
||||
|
||||
If you run this, you'll get an empty blue terminal, with no way of properly
|
||||
leaving the application (you'll have to press <Ctrl-C> to kill it).
|
||||
leaving the application (you'll have to press <kbd>Ctrl</kbd>+<kbd>C</kbd> to kill it).
|
||||
|
||||
[`Cursive`]: https://docs.rs/cursive/0/cursive/struct.Cursive.html
|
||||
|
||||
@ -98,7 +98,7 @@ leaving the application (you'll have to press <Ctrl-C> to kill it).
|
||||
Let's first add a way to stop the application. We want to quit when the user
|
||||
presses the letter `q`.
|
||||
|
||||
Cursive sends an event for every user input ; most of these are just ignored
|
||||
Cursive sends an event for every user input; most of these are just ignored
|
||||
and have no effect. The `Cursive` root has a [`add_global_callback`] method to
|
||||
call a function anytime a certain event is fired.
|
||||
This method takes 2 arguments: a trigger, and a callback.
|
||||
|
Loading…
Reference in New Issue
Block a user