From 1c274a2aefaee60633b6cca2bb21ef372905b123 Mon Sep 17 00:00:00 2001 From: Jinlei Li Date: Fri, 13 Jan 2023 10:38:26 +0800 Subject: [PATCH] Make pass doctest again --- wgpu-types/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 6b0dc0f3bc1..7e9c2a2492f 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -4414,7 +4414,7 @@ impl TextureDescriptor { /// /// ```rust /// # use wgpu_types as wgpu; - /// # type TextureDescriptor = wgpu::TextureDescriptor<(), &[wgpu::TextureFormat]> + /// # type TextureDescriptor = wgpu::TextureDescriptor<(), &[wgpu::TextureFormat]>; /// let desc = TextureDescriptor { /// label: (), /// size: wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 }, @@ -4423,7 +4423,7 @@ impl TextureDescriptor { /// dimension: wgpu::TextureDimension::D3, /// format: wgpu::TextureFormat::Rgba8Sint, /// usage: wgpu::TextureUsages::empty(), - /// view_formats: vec![] + /// view_formats: &[], /// }; /// /// assert_eq!(desc.mip_level_size(0), Some(wgpu::Extent3d { width: 100, height: 60, depth_or_array_layers: 1 }));