Use prelude in docs

This commit is contained in:
Alexandre Bury 2016-07-20 21:43:10 -07:00
parent f28ac264f1
commit 2a4742f67b
2 changed files with 3 additions and 10 deletions

View File

@ -27,8 +27,7 @@ cursive = { git = "https://github.com/gyscos/Cursive" }
```rust
extern crate cursive;
use cursive::Cursive;
use cursive::view::{TextView, Dialog};
use cursive::prelude::*;
fn main() {
// Creates the cursive root - required for every application.

View File

@ -33,8 +33,7 @@
//! ```no_run
//! extern crate cursive;
//!
//! use cursive::Cursive;
//! use cursive::view::TextView;
//! use cursive::prelude::*;
//!
//! fn main() {
//! let mut siv = Cursive::new();
@ -180,12 +179,7 @@ impl Cursive {
/// ```
/// # extern crate cursive;
/// #
/// # use cursive::Cursive;
/// # use cursive::With;
/// # use cursive::menu::MenuTree;
/// # use cursive::view::Dialog;
/// # use cursive::view::TextView;
/// # use cursive::event::Key;
/// # use cursive::prelude::*;
/// #
/// # fn main() {