Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET authored and gauteh committed Oct 10, 2024
1 parent 52d8c0e commit 9fdfad3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/filters/shuffle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ where
/// processing.
///
/// Other implementations have often used Duff's device. Newer compilers, using structured data
/// types when possible, seems to result in similarily fast processing.
/// types when possible, seems to result in similarly fast processing.
pub fn unshuffle_structured<const N: usize>(src: &[u8], dest: &mut [u8]) {
assert!(src.len() == dest.len());
assert!(src.len() % N == 0);
Expand Down
4 changes: 2 additions & 2 deletions src/idx/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl<const D: usize> Chunk<D> {
unsafe { &*(slice.as_ptr() as *const Chunk<D>) }
}

/// Reintepret a slice of `Chunk<D>`s to a slice of `u64`. This is efficient, but relies
/// Reinterpret a slice of `Chunk<D>`s to a slice of `u64`. This is efficient, but relies
/// on unsafe code.
pub fn slice_as_u64s(chunks: &[Chunk<D>]) -> &[ULE] {
let ptr = chunks.as_ptr();
Expand All @@ -122,7 +122,7 @@ impl<const D: usize> Chunk<D> {
slice
}

/// Reintepret a slice of `u64`s to a slice of `Chunk<D>`. This is efficient, but relies
/// Reinterpret a slice of `u64`s to a slice of `Chunk<D>`. This is efficient, but relies
/// on unsafe code.
pub fn slice_from_u64s(slice: &[ULE]) -> &[Chunk<D>] {
assert_eq!(
Expand Down
4 changes: 2 additions & 2 deletions src/reader/dataset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
}

pub trait ReaderExt: Reader {
/// Reads values into desitination slice. Returns values read.
/// Reads values into destination slice. Returns values read.
fn values_to<T, E>(&mut self, extents: E, dst: &mut [T]) -> Result<usize, anyhow::Error>
where
T: ToMutByteSlice,
Expand Down Expand Up @@ -93,7 +93,7 @@ pub trait ParReader {
}

pub trait ParReaderExt: Reader + ParReader {
/// Reads values into desitination slice. Returns values read.
/// Reads values into destination slice. Returns values read.
fn values_to_par<T, E>(&self, extents: E, dst: &mut [T]) -> Result<usize, anyhow::Error>
where
T: ToMutByteSlice,
Expand Down

0 comments on commit 9fdfad3

Please sign in to comment.