Skip to content

Commit

Permalink
fix typos (solana-labs#247)
Browse files Browse the repository at this point in the history
Co-authored-by: HaoranYi <[email protected]>
  • Loading branch information
HaoranYi and HaoranYi authored Mar 15, 2024
1 parent a2579d4 commit dcc6f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts-db/src/tiered_storage/hot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const MAX_HOT_OWNER_OFFSET: OwnerOffset = OwnerOffset((1 << 29) - 1);
/// bytes in HotAccountOffset.
pub(crate) const HOT_ACCOUNT_ALIGNMENT: usize = 8;

/// The alignemnt for the blocks inside a hot accounts file. A hot accounts
/// The alignment for the blocks inside a hot accounts file. A hot accounts
/// file consists of accounts block, index block, owners block, and footer.
/// This requirement allows the offset of each block properly aligned so
/// that they can be readable under mmap.
Expand Down Expand Up @@ -190,7 +190,7 @@ impl TieredAccountMeta for HotAccountMeta {
/// A builder function that initializes the account data size.
fn with_account_data_size(self, _account_data_size: u64) -> Self {
// Hot meta does not store its data size as it derives its data length
// by comparing the offets of two consecutive account meta entries.
// by comparing the offsets of two consecutive account meta entries.
self
}

Expand Down

0 comments on commit dcc6f1e

Please sign in to comment.