From 6d73b94e9ab7fd639746998a83970929437b687b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sat, 30 May 2020 03:03:59 +0200 Subject: [PATCH] Fix documentation of `Backend` in `iced_wgpu` --- wgpu/src/backend.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/wgpu/src/backend.rs b/wgpu/src/backend.rs index 29fc8677..dfcf3a32 100644 --- a/wgpu/src/backend.rs +++ b/wgpu/src/backend.rs @@ -27,9 +27,9 @@ pub struct Backend { } impl Backend { - /// Creates a new [`Renderer`]. + /// Creates a new [`Backend`]. /// - /// [`Renderer`]: struct.Renderer.html + /// [`Backend`]: struct.Backend.html pub fn new(device: &wgpu::Device, settings: Settings) -> Self { let text_pipeline = text::Pipeline::new(device, settings.format, settings.default_font); @@ -53,12 +53,10 @@ impl Backend { } } - /// Draws the provided primitives in the given [`Target`]. + /// Draws the provided primitives in the given `TextureView`. /// - /// The text provided as overlay will be renderer on top of the primitives. + /// The text provided as overlay will be rendered on top of the primitives. /// This is useful for rendering debug information. - /// - /// [`Target`]: struct.Target.html pub fn draw>( &mut self, device: &wgpu::Device,