Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 committed Jan 19, 2025
1 parent 559b654 commit 2aa209f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/freeze/src/types/chunks/binary_chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ impl ChunkData for BinaryChunk {

fn format_item(value: Self::Inner) -> Result<String, ChunkError> {
let hash = prefix_hex::encode(value);
let eigth = match hash.char_indices().nth(8) {
let eight = match hash.char_indices().nth(8) {
Some(x) => x,
None => return Err(ChunkError::ChunkError("could not format chunk".to_string())),
};
let start = &hash[..eigth.0];
let start = &hash[..eight.0];
Ok(start.to_string())
}

Expand Down
2 changes: 1 addition & 1 deletion crates/freeze/src/types/partitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ macro_rules! parametrize {
for output in $outputs.into_iter() {
let chunks = $self_chunks
.as_ref()
.ok_or(CollectError::CollectError("mising block ranges".to_string()))?;
.ok_or(CollectError::CollectError("missing block ranges".to_string()))?;

for chunk in chunks.iter() {
for value in chunk.values().iter() {
Expand Down
2 changes: 1 addition & 1 deletion crates/freeze/src/types/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ impl Source {
},
TraceResult::Error { error, tx_hash } => {
return Err(CollectError::CollectError(format!(
"inalid trace result in tx {:?}: {}",
"invalid trace result in tx {:?}: {}",
tx_hash, error
)));
}
Expand Down

0 comments on commit 2aa209f

Please sign in to comment.