Fix doctests using ::B

This commit is contained in:
nabijaczleweli 2016-10-10 20:23:00 +02:00
parent 28195935d6
commit af0c97749d
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1
2 changed files with 6 additions and 6 deletions

View File

@ -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);
/// ``` /// ```

View File

@ -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"];