mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Fix doctests using ::B
This commit is contained in:
parent
28195935d6
commit
af0c97749d
@ -117,8 +117,8 @@ impl<'a> Printer<'a> {
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # use cursive::Printer;
|
/// # use cursive::Printer;
|
||||||
/// # use cursive::theme;
|
/// # use cursive::theme;
|
||||||
/// # use cursive::B;
|
/// # use cursive::backend;
|
||||||
/// # let b = B{};
|
/// # let b = backend::Concrete::init();
|
||||||
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
|
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
|
||||||
/// printer.with_color(theme::ColorStyle::Highlight, |printer| {
|
/// printer.with_color(theme::ColorStyle::Highlight, |printer| {
|
||||||
/// printer.print((0,0), "This text is highlighted!");
|
/// printer.print((0,0), "This text is highlighted!");
|
||||||
@ -150,8 +150,8 @@ impl<'a> Printer<'a> {
|
|||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # use cursive::Printer;
|
/// # use cursive::Printer;
|
||||||
/// # use cursive::theme;
|
/// # use cursive::theme;
|
||||||
/// # use cursive::B;
|
/// # use cursive::backend;
|
||||||
/// # let b = B{};
|
/// # let b = backend::Concrete::init();
|
||||||
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
|
/// # let printer = Printer::new((6,4), theme::load_default(), &b);
|
||||||
/// printer.print_box((0,0), (6,4), false);
|
/// printer.print_box((0,0), (6,4), false);
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -134,9 +134,9 @@ impl ScrollBase {
|
|||||||
/// # use cursive::view::ScrollBase;
|
/// # use cursive::view::ScrollBase;
|
||||||
/// # use cursive::Printer;
|
/// # use cursive::Printer;
|
||||||
/// # use cursive::theme;
|
/// # use cursive::theme;
|
||||||
/// # use cursive::B;
|
/// # use cursive::backend;
|
||||||
/// # let scrollbase = ScrollBase::new();
|
/// # let scrollbase = ScrollBase::new();
|
||||||
/// # let b = B{};
|
/// # let b = backend::Concrete::init();
|
||||||
/// # let printer = Printer::new((5,1), theme::load_default(), &b);
|
/// # let printer = Printer::new((5,1), theme::load_default(), &b);
|
||||||
/// # let printer = &printer;
|
/// # let printer = &printer;
|
||||||
/// let lines = ["Line 1", "Line number 2"];
|
/// let lines = ["Line 1", "Line number 2"];
|
||||||
|
Loading…
Reference in New Issue
Block a user