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

chore: fix some typos in conments #4404

Merged
merged 1 commit into from
Apr 9, 2024
Merged
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
4 changes: 2 additions & 2 deletions test/src/specs/relay/compact_block.rs
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading