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

Fix typos. #66

Merged
merged 1 commit into from
Mar 14, 2024
Merged
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/core/alignment_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl AlignmentValue {
#[inline]
pub const fn from_next_power_of_two_size(size: SizeValue) -> Self {
match size.get().checked_next_power_of_two() {
None => panic!("Overflow occured while getting the next power of 2!"),
None => panic!("Overflow occurred while getting the next power of 2!"),
Some(val) => {
// SAFETY: This is safe since we got the next_power_of_two
Self(unsafe { NonZeroU64::new_unchecked(val) })
Expand Down
2 changes: 1 addition & 1 deletion src/core/size_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl SizeValue {
#[inline]
pub const fn mul(self, rhs: u64) -> Self {
match self.get().checked_mul(rhs) {
None => panic!("Overflow occured while multiplying size values!"),
None => panic!("Overflow occurred while multiplying size values!"),
Some(val) => {
// SAFETY: This is safe since we checked for overflow
Self(unsafe { NonZeroU64::new_unchecked(val) })
Expand Down
4 changes: 2 additions & 2 deletions src/types/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub trait AsMutMatrixParts<T: MatrixScalar, const C: usize, const R: usize> {
fn as_mut_parts(&mut self) -> &mut [[T; R]; C];
}

/// Enables the cration of a matrix (via `[[T; R]; C]`)
/// Enables the creation of a matrix (via `[[T; R]; C]`)
pub trait FromMatrixParts<T: MatrixScalar, const C: usize, const R: usize> {
fn from_parts(parts: [[T; R]; C]) -> Self;
}
Expand All @@ -41,7 +41,7 @@ pub trait FromMatrixParts<T: MatrixScalar, const C: usize, const R: usize> {
///
/// - `$r` nr of rows the given matrix contains
///
/// - `$type` the type (representing a matrix) for which `ShaderType` will be imeplemented for
/// - `$type` the type (representing a matrix) for which `ShaderType` will be implemented for
///
/// - `$generics` \[optional\] generics that will be passed into the `impl< >`
///
Expand Down
4 changes: 2 additions & 2 deletions src/types/runtime_sized_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::ShaderType;
///
/// - possibly being higher than expected due to padding at the end of a struct or buffer being interpreted as array elements
///
/// - representing the capacity of the array for usecaseses that require oversized buffers
/// - representing the capacity of the array for use cases that require oversized buffers
///
/// # Solution
///
Expand Down Expand Up @@ -75,7 +75,7 @@ pub trait Truncate {
///
/// # Args
///
/// - `$type` the type (representing a runtime-sized array) for which `ShaderType` will be imeplemented for
/// - `$type` the type (representing a runtime-sized array) for which `ShaderType` will be implemented for
///
/// - `$generics` \[optional\] generics that will be passed into the `impl< >`
///
Expand Down
4 changes: 2 additions & 2 deletions src/types/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub trait AsMutVectorParts<T: VectorScalar, const N: usize> {
fn as_mut_parts(&mut self) -> &mut [T; N];
}

/// Enables the cration of a vector (via `[T; N]`)
/// Enables the creation of a vector (via `[T; N]`)
pub trait FromVectorParts<T: VectorScalar, const N: usize> {
fn from_parts(parts: [T; N]) -> Self;
}
Expand All @@ -28,7 +28,7 @@ pub trait FromVectorParts<T: VectorScalar, const N: usize> {
///
/// - `$n` nr of elements the given vector contains
///
/// - `$type` the type (representing a vector) for which `ShaderType` will be imeplemented for
/// - `$type` the type (representing a vector) for which `ShaderType` will be implemented for
///
/// - `$generics` \[optional\] generics that will be passed into the `impl< >`
///
Expand Down
2 changes: 1 addition & 1 deletion src/types/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
///
/// # Args
///
/// - `$type` the type (representing a wrapper) for which `ShaderType` will be imeplemented for
/// - `$type` the type (representing a wrapper) for which `ShaderType` will be implemented for
///
/// - `$generics` \[optional\] generics that will be passed into the `impl< >`
///
Expand Down