From 9bcbda4e7bf8026ef79bf2e0454a7120ff1c09a4 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sun, 24 Feb 2019 18:39:17 -0800 Subject: [PATCH] Update Cursive::new example to compile on windows --- src/cursive.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cursive.rs b/src/cursive.rs index 2283953..a5e7d41 100644 --- a/src/cursive.rs +++ b/src/cursive.rs @@ -136,9 +136,7 @@ impl Cursive { /// /// ```rust,no_run /// # use cursive::{Cursive, backend}; - /// let siv = Cursive::new(backend::curses::n::Backend::init); - /// let siv = Cursive::ncurses(); // equivalent to the line above. - /// let siv = Cursive::default(); // with the default features, equivalent to the line above + /// let siv = Cursive::new(backend::dummy::Backend::init); // equivalent to Cursive::dummy() /// ``` pub fn new(backend_init: F) -> Self where