Skip to content

Commit a4c57de

Browse files
authored
docs: multiple small textual defects (paradigmxyz#17904)
1 parent d31e4ca commit a4c57de

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

crates/evm/execution-types/src/execution_outcome.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<T> ExecutionOutcome<T> {
113113
)
114114
}),
115115
reverts.into_iter().map(|(_, reverts)| {
116-
// does not needs to be sorted, it is done when taking reverts.
116+
// does not need to be sorted, it is done when taking reverts.
117117
reverts.into_iter().map(|(address, (original, storage))| {
118118
(
119119
address,
@@ -214,7 +214,7 @@ impl<T> ExecutionOutcome<T> {
214214

215215
/// Returns the receipt root for all recorded receipts.
216216
/// Note: this function calculated Bloom filters for every receipt and created merkle trees
217-
/// of receipt. This is a expensive operation.
217+
/// of receipt. This is an expensive operation.
218218
pub fn generic_receipts_root_slow(
219219
&self,
220220
block_number: BlockNumber,

crates/transaction-pool/src/test_utils/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ impl MockTransactionSet {
17101710
///
17111711
/// Let an example transaction set be `[(tx1, 1), (tx2, 2)]`, where the first element of the
17121712
/// tuple is a transaction, and the second element is the nonce. If the `gap_pct` is 50, and
1713-
/// the `gap_range` is `1..=1`, then the resulting transaction set could would be either
1713+
/// the `gap_range` is `1..=1`, then the resulting transaction set could be either
17141714
/// `[(tx1, 1), (tx2, 2)]` or `[(tx1, 1), (tx2, 3)]`, with a 50% chance of either.
17151715
pub fn with_nonce_gaps(
17161716
&mut self,

docs/crates/eth-wire.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Let's understand how an `EthMessage` is implemented by taking a look at the `Tra
8585
Transactions (0x02)
8686
[tx₁, tx₂, ...]
8787
88-
Specify transactions that the peer should make sure is included on its transaction queue.
88+
Specify transactions that the peer should make sure are included in its transaction queue.
8989
The items in the list are transactions in the format described in the main Ethereum specification.
9090
...
9191

examples/db-access/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn header_provider_example<T: HeaderProvider>(provider: T, number: u64) -> eyre:
5757
// Can query the header by number
5858
let header = provider.header_by_number(number)?.ok_or(eyre::eyre!("header not found"))?;
5959

60-
// We can convert a header to a sealed header which contains the hash w/o needing to re-compute
60+
// We can convert a header to a sealed header which contains the hash w/o needing to recompute
6161
// it every time.
6262
let sealed_header = SealedHeader::seal_slow(header);
6363

@@ -180,7 +180,7 @@ fn receipts_provider_example<
180180
.receipts_by_block(100.into())?
181181
.ok_or(eyre::eyre!("no receipts found for block"))?;
182182

183-
// Can check if a address/topic filter is present in a header, if it is we query the block and
183+
// Can check if an address/topic filter is present in a header, if it is we query the block and
184184
// receipts and do something with the data
185185
// 1. get the bloom from the header
186186
let header = provider.header_by_number(header_num)?.unwrap();

0 commit comments

Comments
 (0)