Merge pull request #1373 from fralonra/patch-2
Update import path in pure canvas example
This commit is contained in:
commit
c4c1221be6
1 changed files with 4 additions and 2 deletions
|
|
@ -28,11 +28,13 @@ 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::canvas::{self, Canvas, Cursor, Fill, Frame, Geometry, Path, Program};
|
/// use iced::pure::widget::canvas::{self, Canvas, Cursor, Fill, Frame, Geometry, Path, Program};
|
||||||
/// use iced::{Color, Rectangle, Theme};
|
/// use iced::{Color, Rectangle, Theme};
|
||||||
///
|
///
|
||||||
/// // First, we define the data we need for drawing
|
/// // First, we define the data we need for drawing
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue