Fix Canvas doc comment

This commit is contained in:
Alexandre Bury 2017-01-23 22:03:39 -08:00
parent 26e6f4ff97
commit 451d27b58e

View File

@ -24,6 +24,7 @@ impl<T> Canvas<T> {
/// # Examples
///
/// ```rust
/// # use cursive::views::Canvas;
/// let canvas = Canvas::new(())
/// .with_draw(|printer, _| {
/// // Print the view