Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yhchiang-sol committed Dec 20, 2023
1 parent 3aca41a commit c4e59ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions accounts-db/src/tiered_storage/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl IndexBlockFormat {
debug_assert!(
offset.saturating_add(std::mem::size_of::<Offset>())
<= footer.owners_block_offset as usize,
"reading IndexOffset ({}) would exceeds index block boundary ({}).",
"reading IndexOffset ({}) would exceed index block boundary ({}).",
offset,
footer.owners_block_offset,
);
Expand Down Expand Up @@ -234,7 +234,7 @@ mod tests {
}

#[test]
#[should_panic(expected = "would exceeds index block boundary")]
#[should_panic(expected = "would exceed index block boundary")]
fn test_get_account_offset_exceeds_index_block_boundary() {
let temp_dir = TempDir::new().unwrap();
let path = temp_dir
Expand All @@ -251,8 +251,8 @@ mod tests {
};

{
// we only writes a footer here as the test should hit an assert
// failure before it actually reads the file.
// we only write a footer here as the test should hit an assert
// failure before we actually read the file.
let file = TieredStorageFile::new_writable(&path).unwrap();
footer.write_footer_block(&file).unwrap();
}
Expand Down

0 comments on commit c4e59ba

Please sign in to comment.