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

typos #393

Merged
merged 2 commits into from
Mar 16, 2024
Merged

typos #393

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 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/chia_dialect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl Dialect for ChiaDialect {
) -> Response {
let op_len = allocator.atom_len(o);
if op_len == 4 {
// these are unkown operators with assigned cost
// these are unknown operators with assigned cost
// the formula is:
// +---+---+---+------------+
// | multiplier|XX | XXXXXX |
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 incentivize 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
Loading