From 5d3fe19e8ee460398201ca0144e42a18a7b93d1d Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Wed, 28 Sep 2016 22:52:23 -0700 Subject: [PATCH] Fix tutorial 2 markdown --- doc/tutorial_2.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/tutorial_2.md b/doc/tutorial_2.md index 9514d46..e92937f 100644 --- a/doc/tutorial_2.md +++ b/doc/tutorial_2.md @@ -83,7 +83,7 @@ fn main() { ``` Since creating a `Dialog` around a `TextView` is a pretty common task, -[Dialog::text`] is a shortcut function that directly does that. Our line +[`Dialog::text`] is a shortcut function that directly does that. Our line becomes a little shorter (and we don't need to import `cursive::views::TextView` anymore): @@ -103,6 +103,8 @@ This way of chaining method to set-up the view is very common in cursive. Most views provide chainable variants of their methods, to allow creating the view and configuring it in one spot. +[`Dialog::new`]: http://gyscos.github.io/Cursive/cursive/views/struct.Dialog.html#method.new +[`Dialog::text`]: http://gyscos.github.io/Cursive/cursive/views/struct.Dialog.html#method.text [`Dialog::title`]: http://gyscos.github.io/Cursive/cursive/views/struct.Dialog.html#method.title ## Buttons