Skip to content

Commit

Permalink
Update import path in pure canvas example
Browse files Browse the repository at this point in the history
In current version, `iced::pure::canvas` would be unresolved.
It should be `iced::pure::widget::canvas`.
  • Loading branch information
fralonra authored and hecrj committed Jul 9, 2022
1 parent e053e25 commit d4bf49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/src/widget/pure/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use std::marker::PhantomData;
/// # }
/// # 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

0 comments on commit d4bf49c

Please sign in to comment.