Skip to content

Commit

Permalink
Fix doc example in pure::canvas::Program
Browse files Browse the repository at this point in the history
The `widget` module was missing.
  • Loading branch information
hecrj committed Jul 9, 2022
1 parent d4bf49c commit fb1e391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion graphics/src/widget/pure/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ 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};
/// # }
Expand Down

0 comments on commit fb1e391

Please sign in to comment.