Skip to content

Commit

Permalink
Merge pull request #4404 from needsure/develop
Browse files Browse the repository at this point in the history
chore: fix some typos in conments
  • Loading branch information
quake committed Apr 9, 2024
2 parents 9078a11 + 0f09b38 commit 1ff3ac8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/src/specs/relay/compact_block.rs
Expand Up @@ -240,8 +240,8 @@ impl Spec for CompactBlockMissingNotFreshTxs {
/// Test case:
/// 1. CompactBlock new with 2 tx commit, but local node has only one, send GetBlockTransactions to get the missed one
/// 2. At this time, node lost its tx on tx-pool
/// 3. Received BlockTransactions with requets one, but can't construct the block, try requests with all 2 tx
/// 4. Received BlockTransactions with two txs, constract block success
/// 3. Received BlockTransactions with requests one, but can't construct the block, try requests with all 2 tx
/// 4. Received BlockTransactions with two txs, construct block success
pub struct CompactBlockMissingWithDropTx;

impl Spec for CompactBlockMissingWithDropTx {
Expand Down
2 changes: 1 addition & 1 deletion util/indexer-sync/src/pool.rs
Expand Up @@ -43,7 +43,7 @@ impl Pool {
}
}

/// Return wether out_point referred cell consumed by pooled transaction
/// Return weather out_point referred cell consumed by pooled transaction
pub fn is_consumed_by_pool_tx(&self, out_point: &OutPoint) -> bool {
self.dead_cells.contains(out_point)
}
Expand Down
2 changes: 1 addition & 1 deletion util/memory-tracker/src/jemalloc.rs
Expand Up @@ -3,7 +3,7 @@ use std::{ffi, mem, ptr};

/// Dumps the heap through Jemalloc's API.
///
/// This funcions works when the following conditions are satisfied:
/// This functions works when the following conditions are satisfied:
/// - the global allocator is [Jemallocator].
/// - the profiling is enabled.
///
Expand Down

0 comments on commit 1ff3ac8

Please sign in to comment.