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 #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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 .github/label-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ question:
Thanks for your question!


We want to make sure to keep signal strong in the GitHub issue tracker – to make sure
We want to make sure to keep the signal strong in the GitHub issue tracker – to make sure
that it remains the best place to track issues that affect the development of Solana itself.


Expand Down
2 changes: 1 addition & 1 deletion account-decoder/src/parse_bpf_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn parse_bpf_upgradeable_loader(
let offset = if authority_address.is_some() {
UpgradeableLoaderState::size_of_buffer_metadata()
} else {
// This case included for code completeness; in practice, a Buffer account will
// This case is included for code completeness; in practice, a Buffer account will
// always have authority_address.is_some()
UpgradeableLoaderState::size_of_buffer_metadata()
- serialized_size(&Pubkey::default()).unwrap() as usize
Expand Down
2 changes: 1 addition & 1 deletion account-decoder/src/parse_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn spl_token_ids() -> Vec<Pubkey> {
vec![spl_token::id(), spl_token_2022::id()]
}

// Check if the provided program id as a known SPL Token program id
// Check if the provided program id is a known SPL Token program id
pub fn is_known_spl_token_id(program_id: &Pubkey) -> bool {
*program_id == spl_token::id() || *program_id == spl_token_2022::id()
}
Expand Down
2 changes: 1 addition & 1 deletion accounts-db/src/account_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const CACHED_OFFSET: OffsetReduced = (1 << (OffsetReduced::BITS - 1)) - 1;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, Eq, PartialEq)]
pub struct PackedOffsetAndFlags {
/// this provides 2^31 bits, which when multipled by 8 (sizeof(u64)) = 16G, which is the maximum size of an append vec
/// this provides 2^31 bits, which when multiplied by 8 (sizeof(u64)) = 16G, which is the maximum size of an append vec
offset_reduced: B31,
/// use 1 bit to specify that the entry is zero lamport
is_zero_lamport: bool,
Expand Down
2 changes: 1 addition & 1 deletion accounts-db/src/epoch_accounts_hash/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ enum State {
/// include an EAH, or when starting from genesis (before an EAH calculation is requested).
Invalid,
/// An EAH calculation has been requested (for `Slot`) and is in flight. The Bank that should
/// save the EAH must wait until the calculation has completed.
/// save the EAH must wait until the calculation has been completed.
InFlight(Slot),
/// The EAH calculation is complete (for `Slot`) and the EAH value is valid to read/use.
Valid(EpochAccountsHash, Slot),
Expand Down
2 changes: 1 addition & 1 deletion accounts-db/src/tiered_storage/byte_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl ByteBlockWriter {

/// Write all the Some fields of the specified AccountMetaOptionalFields.
///
/// Note that the existance of each optional field is stored separately in
/// Note that the existence of each optional field is stored separately in
/// AccountMetaFlags.
pub fn write_optional_fields(
&mut self,
Expand Down
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 @@ -137,7 +137,7 @@ impl TieredAccountMeta for HotAccountMeta {

/// Returns the epoch that this account will next owe rent by parsing
/// the specified account block. None will be returned if this account
/// does not persist this optional field.
/// does not persist in this optional field.
fn rent_epoch(&self, account_block: &[u8]) -> Option<Epoch> {
self.flags()
.has_rent_epoch()
Expand All @@ -150,7 +150,7 @@ impl TieredAccountMeta for HotAccountMeta {
}

/// Returns the account hash by parsing the specified account block. None
/// will be returned if this account does not persist this optional field.
/// will be returned if this account does not persist in this optional field.
fn account_hash<'a>(&self, account_block: &'a [u8]) -> Option<&'a Hash> {
self.flags()
.has_account_hash()
Expand Down