Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the truncate documentation on 4D types #423

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/f32/coresimd/vec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()].
///
Expand Down
2 changes: 1 addition & 1 deletion src/f32/sse2/vec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()].
///
Expand Down
2 changes: 1 addition & 1 deletion src/f32/wasm32/vec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()].
///
Expand Down
2 changes: 1 addition & 1 deletion src/f64/dvec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/i32/ivec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/i64/i64vec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/u32/uvec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/u64/u64vec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading