From fb1e391d06fba0dc6137decb8e6914758af10976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n?= Date: Sat, 9 Jul 2022 13:32:56 +0200 Subject: [PATCH] Fix doc example in `pure::canvas::Program` The `widget` module was missing. --- graphics/src/widget/pure/canvas.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graphics/src/widget/pure/canvas.rs b/graphics/src/widget/pure/canvas.rs index dd15d5c6f8..19bcb0de2f 100644 --- a/graphics/src/widget/pure/canvas.rs +++ b/graphics/src/widget/pure/canvas.rs @@ -28,7 +28,9 @@ use std::marker::PhantomData; /// ```no_run /// # mod iced { /// # pub mod pure { -/// # pub use iced_graphics::pure::canvas; +/// # pub mod widget { +/// # pub use iced_graphics::pure::canvas; +/// # } /// # } /// # pub use iced_native::{Color, Rectangle, Theme}; /// # }