Skip to content

Commit f89ede7

Browse files
[doc] Fix unbalanced backticks (#7385)
1 parent b7e7d7c commit f89ede7

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

naga-cli/src/bin/naga.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct Args {
5252

5353
/// the shader model to use if targeting HLSL
5454
///
55-
/// May be `50`, 51`, or `60`
55+
/// May be `50`, `51`, or `60`
5656
#[argh(option)]
5757
shader_model: Option<ShaderModelArg>,
5858

naga/src/common/wgsl/to_wgsl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub trait ToWgsl: Sized {
2121
}
2222

2323
/// Types that may be able to return the WGSL source representation
24-
/// for their values as a `'static' string.
24+
/// for their values as a `'static` string.
2525
///
2626
/// This trait is specifically for types whose values are either
2727
/// simple enough that their WGSL form can be represented a static

naga/src/ir/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -979,12 +979,12 @@ pub enum UnaryOperator {
979979
/// either on the left or the right.
980980
///
981981
/// - A [`Matrix`] on the left can be multiplied by a [`Vector`] on the right
982-
/// if the matrix has as many columns as the vector has components (`matCxR
983-
/// * VecC`).
982+
/// if the matrix has as many columns as the vector has components
983+
/// (`matCxR * VecC`).
984984
///
985985
/// - A [`Vector`] on the left can be multiplied by a [`Matrix`] on the right
986-
/// if the matrix has as many rows as the vector has components (`VecR *
987-
/// matCxR`).
986+
/// if the matrix has as many rows as the vector has components
987+
/// (`VecR * matCxR`).
988988
///
989989
/// - Two matrices can be multiplied if the left operand has as many columns
990990
/// as the right operand has rows (`matNxR * matCxN`).
@@ -2258,7 +2258,7 @@ pub struct SpecialTypes {
22582258
/// this if needed and return the handle.
22592259
pub ray_intersection: Option<Handle<Type>>,
22602260

2261-
/// Type for `RayVertexReturn
2261+
/// Type for `RayVertexReturn`.
22622262
///
22632263
/// Call [`Module::generate_vertex_return_type`]
22642264
pub ray_vertex_return: Option<Handle<Type>>,

naga/src/non_max_u32.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ use core::num::NonZeroU32;
4242
///
4343
/// Although this should not be observable to its users, a `NonMaxU32` whose
4444
/// value is `n` is a newtype around a [`NonZeroU32`] whose value is `n + 1`.
45-
/// This way, the range of values that `NonMaxU32` can represent, `0..=u32::MAX
46-
/// - 1`, is mapped to the range `1..=u32::MAX`, which is the range that
47-
/// [`NonZeroU32`] can represent. (And conversely, since [`u32`] addition wraps
48-
/// around, the value unrepresentable in `NonMaxU32`, [`u32::MAX`], becomes the
49-
/// value unrepresentable in [`NonZeroU32`], `0`.)
45+
/// This way, the range of values that `NonMaxU32` can represent,
46+
/// `0..=u32::MAX - 1`, is mapped to the range `1..=u32::MAX`, which is the
47+
/// range that /// [`NonZeroU32`] can represent. (And conversely, since
48+
/// [`u32`] addition wraps around, the value unrepresentable in `NonMaxU32`,
49+
/// [`u32::MAX`], becomes the value unrepresentable in [`NonZeroU32`], `0`.)
5050
///
5151
/// [`NonZeroU32`]: core::num::NonZeroU32
5252
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]

wgpu/src/api/render_pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub struct VertexState<'a> {
105105
/// [`RenderPass::set_vertex_buffer()`].
106106
///
107107
/// The attribute locations and types specified in this layout must match the
108-
/// locations and types of the inputs to the `entry_point` function.`
108+
/// locations and types of the inputs to the `entry_point` function.
109109
pub buffers: &'a [VertexBufferLayout<'a>],
110110
}
111111
#[cfg(send_sync)]

0 commit comments

Comments
 (0)