From f89ede7cd8eb7da63aadce04d6204609ed77aa86 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 21 Mar 2025 10:03:37 +0700 Subject: [PATCH] [doc] Fix unbalanced backticks (#7385) --- naga-cli/src/bin/naga.rs | 2 +- naga/src/common/wgsl/to_wgsl.rs | 2 +- naga/src/ir/mod.rs | 10 +++++----- naga/src/non_max_u32.rs | 10 +++++----- wgpu/src/api/render_pipeline.rs | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/naga-cli/src/bin/naga.rs b/naga-cli/src/bin/naga.rs index bec5edeaf..a39640dc3 100644 --- a/naga-cli/src/bin/naga.rs +++ b/naga-cli/src/bin/naga.rs @@ -52,7 +52,7 @@ struct Args { /// the shader model to use if targeting HLSL /// - /// May be `50`, 51`, or `60` + /// May be `50`, `51`, or `60` #[argh(option)] shader_model: Option, diff --git a/naga/src/common/wgsl/to_wgsl.rs b/naga/src/common/wgsl/to_wgsl.rs index 73dea711e..82fe7c592 100644 --- a/naga/src/common/wgsl/to_wgsl.rs +++ b/naga/src/common/wgsl/to_wgsl.rs @@ -21,7 +21,7 @@ pub trait ToWgsl: Sized { } /// Types that may be able to return the WGSL source representation -/// for their values as a `'static' string. +/// for their values as a `'static` string. /// /// This trait is specifically for types whose values are either /// simple enough that their WGSL form can be represented a static diff --git a/naga/src/ir/mod.rs b/naga/src/ir/mod.rs index c83ff554a..fa7bf6379 100644 --- a/naga/src/ir/mod.rs +++ b/naga/src/ir/mod.rs @@ -979,12 +979,12 @@ pub enum UnaryOperator { /// either on the left or the right. /// /// - A [`Matrix`] on the left can be multiplied by a [`Vector`] on the right -/// if the matrix has as many columns as the vector has components (`matCxR -/// * VecC`). +/// if the matrix has as many columns as the vector has components +/// (`matCxR * VecC`). /// /// - A [`Vector`] on the left can be multiplied by a [`Matrix`] on the right -/// if the matrix has as many rows as the vector has components (`VecR * -/// matCxR`). +/// if the matrix has as many rows as the vector has components +/// (`VecR * matCxR`). /// /// - Two matrices can be multiplied if the left operand has as many columns /// as the right operand has rows (`matNxR * matCxN`). @@ -2258,7 +2258,7 @@ pub struct SpecialTypes { /// this if needed and return the handle. pub ray_intersection: Option>, - /// Type for `RayVertexReturn + /// Type for `RayVertexReturn`. /// /// Call [`Module::generate_vertex_return_type`] pub ray_vertex_return: Option>, diff --git a/naga/src/non_max_u32.rs b/naga/src/non_max_u32.rs index da866f738..530ebb450 100644 --- a/naga/src/non_max_u32.rs +++ b/naga/src/non_max_u32.rs @@ -42,11 +42,11 @@ use core::num::NonZeroU32; /// /// Although this should not be observable to its users, a `NonMaxU32` whose /// value is `n` is a newtype around a [`NonZeroU32`] whose value is `n + 1`. -/// This way, the range of values that `NonMaxU32` can represent, `0..=u32::MAX -/// - 1`, is mapped to the range `1..=u32::MAX`, which is the range that -/// [`NonZeroU32`] can represent. (And conversely, since [`u32`] addition wraps -/// around, the value unrepresentable in `NonMaxU32`, [`u32::MAX`], becomes the -/// value unrepresentable in [`NonZeroU32`], `0`.) +/// This way, the range of values that `NonMaxU32` can represent, +/// `0..=u32::MAX - 1`, is mapped to the range `1..=u32::MAX`, which is the +/// range that /// [`NonZeroU32`] can represent. (And conversely, since +/// [`u32`] addition wraps around, the value unrepresentable in `NonMaxU32`, +/// [`u32::MAX`], becomes the value unrepresentable in [`NonZeroU32`], `0`.) /// /// [`NonZeroU32`]: core::num::NonZeroU32 #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] diff --git a/wgpu/src/api/render_pipeline.rs b/wgpu/src/api/render_pipeline.rs index b033b2bfd..5ef23ff0d 100644 --- a/wgpu/src/api/render_pipeline.rs +++ b/wgpu/src/api/render_pipeline.rs @@ -105,7 +105,7 @@ pub struct VertexState<'a> { /// [`RenderPass::set_vertex_buffer()`]. /// /// The attribute locations and types specified in this layout must match the - /// locations and types of the inputs to the `entry_point` function.` + /// locations and types of the inputs to the `entry_point` function. pub buffers: &'a [VertexBufferLayout<'a>], } #[cfg(send_sync)]