mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 09:25:01 +00:00
Update Cursive::new example to compile on windows
This commit is contained in:
parent
9bad00144b
commit
9bcbda4e7b
@ -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<F>(backend_init: F) -> Self
|
||||
where
|
||||
|
Loading…
Reference in New Issue
Block a user