Fix doc example in pure::canvas::Program

The `widget` module was missing.
This commit is contained in:
Héctor Ramón 2022-07-09 13:32:56 +02:00 committed by Héctor Ramón Jiménez
parent d4bf49c84c
commit fb1e391d06
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -28,8 +28,10 @@ use std::marker::PhantomData;
/// ```no_run /// ```no_run
/// # mod iced { /// # mod iced {
/// # pub mod pure { /// # pub mod pure {
/// # pub mod widget {
/// # pub use iced_graphics::pure::canvas; /// # pub use iced_graphics::pure::canvas;
/// # } /// # }
/// # }
/// # pub use iced_native::{Color, Rectangle, Theme}; /// # pub use iced_native::{Color, Rectangle, Theme};
/// # } /// # }
/// use iced::pure::widget::canvas::{self, Canvas, Cursor, Fill, Frame, Geometry, Path, Program}; /// use iced::pure::widget::canvas::{self, Canvas, Cursor, Fill, Frame, Geometry, Path, Program};