mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 09:25:01 +00:00
Fix a few typos in tutorial 1
<Ctrl-C> gets interpreted as an HTML tag as is so we need to put it in backtics
This commit is contained in:
parent
840fd627b7
commit
477acc1039
@ -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 `<Ctrl-C>` 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