mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Add missing use
statements to doc example
This commit is contained in:
parent
778c1f1d71
commit
5af367fa18
@ -14,6 +14,11 @@ pub trait Identifiable: View + Sized {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
|
/// # use cursive::Cursive;
|
||||||
|
/// # use cursive::views::TextView;
|
||||||
|
/// # use cursive::view::Boxable;
|
||||||
|
/// use cursive::view::Identifiable;
|
||||||
|
///
|
||||||
/// let mut siv = Cursive::new();
|
/// let mut siv = Cursive::new();
|
||||||
/// siv.add_layer(
|
/// siv.add_layer(
|
||||||
/// TextView::new("foo")
|
/// TextView::new("foo")
|
||||||
|
Loading…
Reference in New Issue
Block a user