Update readme example.

The example spelled "Hello world", but the image said "Hello Dialog".
This commit is contained in:
Alexandre Bury 2015-05-25 01:15:00 -07:00
parent 89221fae55
commit 7fb1108ff8

View File

@ -20,7 +20,7 @@ fn main() {
let mut siv = Cursive::new(); let mut siv = Cursive::new();
// Create a popup window with a "Ok" button that quits the application // Create a popup window with a "Ok" button that quits the application
siv.add_layer(Dialog::new(TextView::new("Hello world!")) siv.add_layer(Dialog::new(TextView::new("Hello Dialog!"))
.title("Cursive") .title("Cursive")
.button("Quit", |s| s.quit())); .button("Quit", |s| s.quit()));
@ -31,7 +31,7 @@ fn main() {
![Cursive dialog example](https://raw.githubusercontent.com/Gyscos/Cursive/master/doc/cursive_example.png) ![Cursive dialog example](https://raw.githubusercontent.com/Gyscos/Cursive/master/doc/cursive_example.png)
_(Colors may depend on your terminal configuration)_ _(Colors may depend on your terminal configuration.)_
The goal is to be flexible enough, so that recreating these kind of tools would be - relatively - easy (at least on the layout front): The goal is to be flexible enough, so that recreating these kind of tools would be - relatively - easy (at least on the layout front):