Fix Printer::print_box documentation

This commit is contained in:
Alexandre Bury 2016-08-04 17:38:26 -07:00
parent f7a3d821d1
commit cadb585948

View File

@ -113,13 +113,16 @@ impl Printer {
/// Prints a rectangular box.
///
/// If `invert` is `true`, and the theme uses `Outset` borders, then the
/// box will use an "inset" style instead.
///
/// # Examples
///
/// ```
/// # use cursive::Printer;
/// # use cursive::theme;
/// # let printer = Printer::new((6,4), theme::load_default());
/// printer.print_box((0,0), (6,4));
/// printer.print_box((0,0), (6,4), false);
/// ```
pub fn print_box<T: Into<Vec2>, S: Into<Vec2>>(&self, start: T, size: S,
invert: bool) {