Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkiss committed Mar 15, 2024
1 parent 74fdbe1 commit c49ab19
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl Allocator {
pub fn restore_checkpoint(&mut self, cp: &Checkpoint) {
// if any of these asserts fire, it means we're trying to restore to
// a state that has already been "long-jumped" passed (via another
// restore to an earler state). You can only restore backwards in time,
// restore to an earlier state). You can only restore backwards in time,
// not forwards.
assert!(self.u8_vec.len() >= cp.u8s);
assert!(self.pair_vec.len() >= cp.pairs);
Expand Down
2 changes: 1 addition & 1 deletion src/more_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const PUBKEY_BASE_COST: Cost = 1325730;
const PUBKEY_COST_PER_BYTE: Cost = 38;

// the new coinid operator
// we subtract 153 cost as a discount, to incentivice using this operator rather
// we subtract 153 cost as a discount, to incentive using this operator rather
// than "naked" sha256
const COINID_COST: Cost =
SHA256_BASE_COST + SHA256_COST_PER_ARG * 3 + SHA256_COST_PER_BYTE * (32 + 32 + 8) - 153;
Expand Down
2 changes: 1 addition & 1 deletion src/serde/read_cache_lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl ReadCacheLookup {
possible_responses
}

/// If multiple paths exist, the lexigraphically smallest one will be returned.
/// If multiple paths exist, the lexicographically smallest one will be returned.
pub fn find_path(&self, id: &Bytes32, serialized_length: u64) -> Option<Vec<u8>> {
let mut paths = self.find_paths(id, serialized_length);
if !paths.is_empty() {
Expand Down
2 changes: 1 addition & 1 deletion src/serde/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn serialized_length_from_bytes_trusted(b: &[u8]) -> io::Result<u64> {
ops_counter -= 1;
f.read_exact(&mut b)?;
if b[0] == CONS_BOX_MARKER {
// we expect to parse two more items from the strem
// we expect to parse two more items from the stream
// the left and right sub tree
ops_counter += 2;
} else if b[0] == BACK_REFERENCE {
Expand Down
2 changes: 1 addition & 1 deletion wheel/python/tests/test_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_uncurry_top_level_garbage():


def test_uncurry_not_pair():
# the second item in the list is expected to be a pair, with a qoute
# the second item in the list is expected to be a pair, with a quote
# `(a 1 (c (q . 1) (q . 1)))`
plus = Program.fromhex("ff02ff01ffff04ffff0101ffff01018080")
assert plus.uncurry() == (plus, None)
Expand Down

0 comments on commit c49ab19

Please sign in to comment.