Skip to content

Commit

Permalink
Make pass doctest again
Browse files Browse the repository at this point in the history
  • Loading branch information
jinleili committed Jan 13, 2023
1 parent 247dc5c commit 1c274a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4414,7 +4414,7 @@ impl<L, V: Clone> TextureDescriptor<L, V> {
///
/// ```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 },
Expand All @@ -4423,7 +4423,7 @@ impl<L, V: Clone> TextureDescriptor<L, V> {
/// 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 }));
Expand Down

0 comments on commit 1c274a2

Please sign in to comment.