Merge pull request #1373 from fralonra/patch-2

Update import path in pure canvas example
This commit is contained in:
Héctor Ramón 2022-07-09 18:53:46 +02:00 committed by GitHub
commit c4c1221be6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,11 +28,13 @@ 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};
/// # }
/// 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};
///
/// // First, we define the data we need for drawing