Update Cursive::new example to compile on windows

This commit is contained in:
Alexandre Bury 2019-02-24 18:39:17 -08:00
parent 9bad00144b
commit 9bcbda4e7b

View File

@ -136,9 +136,7 @@ impl Cursive {
/// ///
/// ```rust,no_run /// ```rust,no_run
/// # use cursive::{Cursive, backend}; /// # use cursive::{Cursive, backend};
/// let siv = Cursive::new(backend::curses::n::Backend::init); /// let siv = Cursive::new(backend::dummy::Backend::init); // equivalent to Cursive::dummy()
/// let siv = Cursive::ncurses(); // equivalent to the line above.
/// let siv = Cursive::default(); // with the default features, equivalent to the line above
/// ``` /// ```
pub fn new<F>(backend_init: F) -> Self pub fn new<F>(backend_init: F) -> Self
where where