From 477acc10394ee3c37b3141c4da24146ac9112d2a Mon Sep 17 00:00:00 2001 From: robbystk Date: Tue, 24 Jul 2018 21:02:57 -0600 Subject: [PATCH 1/2] Fix a few typos in tutorial 1 gets interpreted as an HTML tag as is so we need to put it in backtics --- doc/tutorial_1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial_1.md b/doc/tutorial_1.md index 762f9bd..f97b530 100644 --- a/doc/tutorial_1.md +++ b/doc/tutorial_1.md @@ -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 to kill it). +leaving the application (you'll have to press `` 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 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. From 717c78a2fa35a1eab42cf377b5da701f173cf382 Mon Sep 17 00:00:00 2001 From: robbystk Date: Tue, 24 Jul 2018 22:27:17 -0600 Subject: [PATCH 2/2] Use the tag for Ctrl-C --- doc/tutorial_1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial_1.md b/doc/tutorial_1.md index f97b530..0d8c5ca 100644 --- a/doc/tutorial_1.md +++ b/doc/tutorial_1.md @@ -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 `` 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