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,8 +20,8 @@ fn main() {
let mut siv = Cursive::new();
// Create a popup window with a "Ok" button that quits the application
siv.add_layer(Dialog::new(TextView::new("Hello world!"))
.title("Cursive")
siv.add_layer(Dialog::new(TextView::new("Hello Dialog!"))
.title("Cursive")
.button("Quit", |s| s.quit()));
// Starts the event loop.
@ -31,7 +31,7 @@ fn main() {
![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):