diff options
author | 2020-04-19 14:41:25 +0200 | |
---|---|---|
committer | 2020-04-19 14:41:25 +0200 | |
commit | 8ade09a0f6fd6bfdcefebb92ccbbff25d741062a (patch) | |
tree | b00e043e55cac1be850374fcefc2453de8662a72 /wgpu | |
parent | 0b5028b1ab47707a469176e9bf20cacdd3a19861 (diff) | |
download | iced-8ade09a0f6fd6bfdcefebb92ccbbff25d741062a.tar.gz iced-8ade09a0f6fd6bfdcefebb92ccbbff25d741062a.tar.bz2 iced-8ade09a0f6fd6bfdcefebb92ccbbff25d741062a.zip |
Simplify `Canvas` example in documentation
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/widget/canvas.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/widget/canvas.rs b/wgpu/src/widget/canvas.rs index de4f0203..326bc7d5 100644 --- a/wgpu/src/widget/canvas.rs +++ b/wgpu/src/widget/canvas.rs @@ -78,7 +78,7 @@ pub use text::Text; /// impl Drawable for Circle { /// fn draw(&self, frame: &mut Frame) { /// // We create a `Path` representing a simple circle -/// let circle = Path::new(|p| p.circle(frame.center(), self.radius)); +/// let circle = Path::circle(frame.center(), self.radius); /// /// // And fill it with some color /// frame.fill(&circle, Fill::Color(Color::BLACK)); |