From 5cdbf3f9464e9ed16ad27db8a2d6b4ad67bf9ab6 Mon Sep 17 00:00:00 2001 From: chee Date: Mon, 30 Aug 2021 12:33:18 +0800 Subject: [PATCH] Fix some comment error. --- 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 9b3a8815fa..21f8c02adc 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -904,7 +904,7 @@ impl Default for TextureViewDimension { } impl TextureViewDimension { - /// Get the texture dimension required fo this texture view dimension. + /// Get the texture dimension required of this texture view dimension. pub fn compatible_texture_dimension(self) -> TextureDimension { match self { Self::D1 => TextureDimension::D1, @@ -1112,7 +1112,7 @@ pub enum PrimitiveTopology { TriangleList = 3, /// Vertex data is a triangle strip. Each set of three adjacent vertices form a triangle. /// - /// Vertices `0 1 2 3 4 5` creates four triangles `0 1 2`, `2 1 3`, `3 2 4`, and `4 3 5` + /// Vertices `0 1 2 3 4 5` creates four triangles `0 1 2`, `2 1 3`, `2 3 4`, and `4 3 5` TriangleStrip = 4, }