Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update import path in pure canvas example #1373

Merged
merged 2 commits into from
Jul 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions graphics/src/widget/pure/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down