diff --git a/src/f32/coresimd/vec4.rs b/src/f32/coresimd/vec4.rs index ae819d00..33354b86 100644 --- a/src/f32/coresimd/vec4.rs +++ b/src/f32/coresimd/vec4.rs @@ -134,7 +134,7 @@ impl Vec4 { slice[3] = self.w; } - /// Creates a 2D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. + /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. /// /// Truncation to [`Vec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()]. /// diff --git a/src/f32/sse2/vec4.rs b/src/f32/sse2/vec4.rs index f3880989..8660a323 100644 --- a/src/f32/sse2/vec4.rs +++ b/src/f32/sse2/vec4.rs @@ -147,7 +147,7 @@ impl Vec4 { } } - /// Creates a 2D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. + /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. /// /// Truncation to [`Vec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()]. /// diff --git a/src/f32/wasm32/vec4.rs b/src/f32/wasm32/vec4.rs index 7f3e0dd2..1fa9c48e 100644 --- a/src/f32/wasm32/vec4.rs +++ b/src/f32/wasm32/vec4.rs @@ -139,7 +139,7 @@ impl Vec4 { slice[3] = self.w; } - /// Creates a 2D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. + /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. /// /// Truncation to [`Vec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()]. /// diff --git a/src/f64/dvec4.rs b/src/f64/dvec4.rs index 03bb3905..3ff87b5f 100644 --- a/src/f64/dvec4.rs +++ b/src/f64/dvec4.rs @@ -147,7 +147,7 @@ impl DVec4 { slice[3] = self.w; } - /// Creates a 2D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. + /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. /// /// Truncation to [`DVec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()]. #[inline] diff --git a/src/i32/ivec4.rs b/src/i32/ivec4.rs index 15dede60..525837a9 100644 --- a/src/i32/ivec4.rs +++ b/src/i32/ivec4.rs @@ -139,7 +139,7 @@ impl IVec4 { slice[3] = self.w; } - /// Creates a 2D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. + /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. /// /// Truncation to [`IVec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()]. #[inline] diff --git a/src/i64/i64vec4.rs b/src/i64/i64vec4.rs index 173e12bc..04c2a941 100644 --- a/src/i64/i64vec4.rs +++ b/src/i64/i64vec4.rs @@ -139,7 +139,7 @@ impl I64Vec4 { slice[3] = self.w; } - /// Creates a 2D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. + /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. /// /// Truncation to [`I64Vec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()]. #[inline] diff --git a/src/u32/uvec4.rs b/src/u32/uvec4.rs index 0c1df1e7..6f4f7ff8 100644 --- a/src/u32/uvec4.rs +++ b/src/u32/uvec4.rs @@ -124,7 +124,7 @@ impl UVec4 { slice[3] = self.w; } - /// Creates a 2D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. + /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. /// /// Truncation to [`UVec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()]. #[inline] diff --git a/src/u64/u64vec4.rs b/src/u64/u64vec4.rs index c58d9e10..28b9c287 100644 --- a/src/u64/u64vec4.rs +++ b/src/u64/u64vec4.rs @@ -124,7 +124,7 @@ impl U64Vec4 { slice[3] = self.w; } - /// Creates a 2D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. + /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`. /// /// Truncation to [`U64Vec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()]. #[inline]