mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix tutorial 2 markdown
This commit is contained in:
parent
d684a5bc1e
commit
5d3fe19e8e
@ -83,7 +83,7 @@ fn main() {
|
|||||||
```
|
```
|
||||||
|
|
||||||
Since creating a `Dialog` around a `TextView` is a pretty common task,
|
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
|
becomes a little shorter (and we don't need to import
|
||||||
`cursive::views::TextView` anymore):
|
`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
|
views provide chainable variants of their methods, to allow creating the view
|
||||||
and configuring it in one spot.
|
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
|
[`Dialog::title`]: http://gyscos.github.io/Cursive/cursive/views/struct.Dialog.html#method.title
|
||||||
|
|
||||||
## Buttons
|
## Buttons
|
||||||
|
Loading…
Reference in New Issue
Block a user