Skip to content

Commit

Permalink
chore: fix some typos (#33833)
Browse files Browse the repository at this point in the history
* fix spelling of "retrieved"
* fix spelling of "should"
* fix spelling of "comparisons"
  • Loading branch information
kevinheavey authored Oct 25, 2023
1 parent 78c31aa commit af7fd32
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5882,7 +5882,7 @@ impl AccountsDb {
self.purge_slot_cache(*remove_slot, slot_cache);
remove_cache_elapsed.stop();
remove_cache_elapsed_across_slots += remove_cache_elapsed.as_us();
// Nobody else shoud have removed the slot cache entry yet
// Nobody else should have removed the slot cache entry yet
assert!(self.accounts_cache.remove_slot(*remove_slot).is_some());
} else {
self.purge_slot_storage(*remove_slot, purge_stats);
Expand Down
8 changes: 4 additions & 4 deletions accounts-db/src/accounts_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1517,18 +1517,18 @@ mod tests {
let len = combined.len();
assert_eq!(cumulative.total_count(), len);
(0..combined.len()).for_each(|start| {
let mut retreived = Vec::default();
let mut retrieved = Vec::default();
let mut cumulative_start = start;
// read all data
while retreived.len() < (len - start) {
while retrieved.len() < (len - start) {
let this_one = cumulative.get_slice(cumulative_start);
retreived.extend(this_one.iter());
retrieved.extend(this_one.iter());
cumulative_start += this_one.len();
assert_ne!(0, this_one.len());
}
assert_eq!(
&combined[start..],
&retreived[..],
&retrieved[..],
"permutation: {permutation}"
);
});
Expand Down
12 changes: 6 additions & 6 deletions ci/semver_bash/semver_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "$A -> M:$MAJOR m:$MINOR p:$PATCH s:$SPECIAL. Expect M:1 m:3 p:2 s:"
semverParseInto $E MAJOR MINOR PATCH SPECIAL
echo "$E -> M:$MAJOR m:$MINOR p:$PATCH s:$SPECIAL. Expect M:1 m:3 p:2 s:a"

echo "Equality comparisions"
echo "Equality comparisons"
semverEQ $A $A
echo "$A == $A -> $?. Expect 0."

Expand All @@ -32,7 +32,7 @@ semverGT $A $A
echo "$A > $A -> $?. Expect 1."


echo "Major number comparisions"
echo "Major number comparisons"
semverEQ $A $B
echo "$A == $B -> $?. Expect 1."

Expand All @@ -52,7 +52,7 @@ semverGT $B $A
echo "$B > $A -> $?. Expect 0."


echo "Minor number comparisions"
echo "Minor number comparisons"
semverEQ $A $C
echo "$A == $C -> $?. Expect 1."

Expand All @@ -71,7 +71,7 @@ echo "$C < $A -> $?. Expect 1."
semverGT $C $A
echo "$C > $A -> $?. Expect 0."

echo "patch number comparisions"
echo "patch number comparisons"
semverEQ $A $D
echo "$A == $D -> $?. Expect 1."

Expand All @@ -90,7 +90,7 @@ echo "$D < $A -> $?. Expect 1."
semverGT $D $A
echo "$D > $A -> $?. Expect 0."

echo "special section vs no special comparisions"
echo "special section vs no special comparisons"
semverEQ $A $E
echo "$A == $E -> $?. Expect 1."

Expand All @@ -109,7 +109,7 @@ echo "$E < $A -> $?. Expect 0."
semverGT $E $A
echo "$E > $A -> $?. Expect 1."

echo "special section vs special comparisions"
echo "special section vs special comparisons"
semverEQ $E $F
echo "$E == $F -> $?. Expect 1."

Expand Down
2 changes: 1 addition & 1 deletion cost-model/src/cost_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ mod tests {
}

// case 3: add tx writes to [acct1, acct2], acct2 exceeds limit, should failed atomically,
// we shoudl still have:
// we should still have:
// | acct1 | $cost |
// | acct2 | $cost * 2 |
// | acct3 | $cost |
Expand Down
2 changes: 1 addition & 1 deletion docs/static/katex/katex.js
Original file line number Diff line number Diff line change
Expand Up @@ -3674,7 +3674,7 @@ function assertSpan(group) {
// '\expandafter\show\the\scriptscriptfont2' \
// '\stop'
//
// The metrics themselves were retreived using the following commands:
// The metrics themselves were retrieved using the following commands:
//
// tftopl cmsy10
// tftopl cmsy7
Expand Down
2 changes: 1 addition & 1 deletion docs/static/katex/katex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3698,7 +3698,7 @@ var metricMap = {
// '\expandafter\show\the\scriptscriptfont2' \
// '\stop'
//
// The metrics themselves were retreived using the following commands:
// The metrics themselves were retrieved using the following commands:
//
// tftopl cmsy10
// tftopl cmsy7
Expand Down
2 changes: 1 addition & 1 deletion sdk/program/src/system_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ pub fn create_nonce_account(
///
/// When constructing a transaction that includes an `AdvanceNonceInstruction`
/// the [`recent_blockhash`] must be treated differently &mdash; instead of
/// setting it to a recent blockhash, the value of the nonce must be retreived
/// setting it to a recent blockhash, the value of the nonce must be retrieved
/// and deserialized from the nonce account, and that value specified as the
/// "recent blockhash". A nonce account can be deserialized with the
/// [`solana_rpc_client_nonce_utils::data_from_account`][dfa] function.
Expand Down

0 comments on commit af7fd32

Please sign in to comment.