mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +00:00
Use prelude in docs
This commit is contained in:
parent
f28ac264f1
commit
2a4742f67b
@ -27,8 +27,7 @@ cursive = { git = "https://github.com/gyscos/Cursive" }
|
|||||||
```rust
|
```rust
|
||||||
extern crate cursive;
|
extern crate cursive;
|
||||||
|
|
||||||
use cursive::Cursive;
|
use cursive::prelude::*;
|
||||||
use cursive::view::{TextView, Dialog};
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Creates the cursive root - required for every application.
|
// Creates the cursive root - required for every application.
|
||||||
|
10
src/lib.rs
10
src/lib.rs
@ -33,8 +33,7 @@
|
|||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! extern crate cursive;
|
//! extern crate cursive;
|
||||||
//!
|
//!
|
||||||
//! use cursive::Cursive;
|
//! use cursive::prelude::*;
|
||||||
//! use cursive::view::TextView;
|
|
||||||
//!
|
//!
|
||||||
//! fn main() {
|
//! fn main() {
|
||||||
//! let mut siv = Cursive::new();
|
//! let mut siv = Cursive::new();
|
||||||
@ -180,12 +179,7 @@ impl Cursive {
|
|||||||
/// ```
|
/// ```
|
||||||
/// # extern crate cursive;
|
/// # extern crate cursive;
|
||||||
/// #
|
/// #
|
||||||
/// # use cursive::Cursive;
|
/// # use cursive::prelude::*;
|
||||||
/// # use cursive::With;
|
|
||||||
/// # use cursive::menu::MenuTree;
|
|
||||||
/// # use cursive::view::Dialog;
|
|
||||||
/// # use cursive::view::TextView;
|
|
||||||
/// # use cursive::event::Key;
|
|
||||||
/// #
|
/// #
|
||||||
/// # fn main() {
|
/// # fn main() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user