Merge pull request #275 from vlttnv/master

Fix broken example in readme to use Cursive::default()
This commit is contained in:
Alexandre Bury 2018-08-01 15:28:51 -07:00 committed by GitHub
commit 8eb7ca871f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ use cursive::views::{Dialog, TextView};
fn main() { fn main() {
// Creates the cursive root - required for every application. // Creates the cursive root - required for every application.
let mut siv = Cursive::new(); let mut siv = Cursive::default();
// Creates a dialog with a single "Quit" button // Creates a dialog with a single "Quit" button
siv.add_layer(Dialog::around(TextView::new("Hello Dialog!")) siv.add_layer(Dialog::around(TextView::new("Hello Dialog!"))