Update import path in pure canvas example

In current version, `iced::pure::canvas` would be unresolved.
It should be `iced::pure::widget::canvas`.
This commit is contained in:
Zoron 2022-06-30 12:54:30 +08:00 committed by Héctor Ramón Jiménez
parent e053e25d2c
commit d4bf49c84c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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