diff options
author | 2020-05-30 03:03:59 +0200 | |
---|---|---|
committer | 2020-05-30 03:03:59 +0200 | |
commit | 6d73b94e9ab7fd639746998a83970929437b687b (patch) | |
tree | d43445c3d13d9625959bd608421de680ca7665ec /wgpu | |
parent | 96b2afba316715fafe2f40224954e05c55de04e5 (diff) | |
download | iced-6d73b94e9ab7fd639746998a83970929437b687b.tar.gz iced-6d73b94e9ab7fd639746998a83970929437b687b.tar.bz2 iced-6d73b94e9ab7fd639746998a83970929437b687b.zip |
Fix documentation of `Backend` in `iced_wgpu`
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/backend.rs | 10 |
1 files 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<T: AsRef<str>>( &mut self, device: &wgpu::Device, |