diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a5d3775cd0..8c51b03d19 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,7 +3,7 @@ Thanks for your interest in improving Reth! There are multiple opportunities to contribute at any level. It doesn't matter if you are just getting started with Rust -or are the most weathered expert, we can use your help. +or if you are already the most weathered expert, we can use your help. **No contribution is too small and all contributions are valued.** diff --git a/examples/bsc-p2p/src/block_import/parlia.rs b/examples/bsc-p2p/src/block_import/parlia.rs index ec7459ca8b..a985895aa6 100644 --- a/examples/bsc-p2p/src/block_import/parlia.rs +++ b/examples/bsc-p2p/src/block_import/parlia.rs @@ -32,7 +32,7 @@ where { /// Determines the head block hash according to Parlia consensus rules: /// 1. Follow the highest block number - /// 2. For same height blocks, pick the one with lower hash + /// 2. For the same height blocks, pick the one with the lower hash pub(crate) fn canonical_head( &self, hash: B256, diff --git a/examples/bsc-p2p/src/upgrade_status.rs b/examples/bsc-p2p/src/upgrade_status.rs index eadbdcd6ac..c31cf1751a 100644 --- a/examples/bsc-p2p/src/upgrade_status.rs +++ b/examples/bsc-p2p/src/upgrade_status.rs @@ -44,7 +44,7 @@ impl UpgradeStatus { } /// The extension to define whether to enable or disable the flag. -/// This flag currently is ignored, and will be supported later. +/// This flag is currently ignored, and will be supported later. #[derive(Debug, Clone, PartialEq, Eq, RlpEncodable, RlpDecodable)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct UpgradeStatusExtension { diff --git a/examples/custom-node/src/evm/config.rs b/examples/custom-node/src/evm/config.rs index 7078342f1f..c029512b84 100644 --- a/examples/custom-node/src/evm/config.rs +++ b/examples/custom-node/src/evm/config.rs @@ -130,7 +130,7 @@ impl ConfigureEngineEvm for CustomEvmConfig { } } -/// Additional parameters required for executing next block custom transactions. +/// Additional parameters required for executing next block of custom transactions. #[derive(Debug, Clone)] pub struct CustomNextBlockEnvAttributes { inner: OpNextBlockEnvAttributes, diff --git a/examples/custom-node/src/lib.rs b/examples/custom-node/src/lib.rs index 83a9a13c5e..4210ac9b76 100644 --- a/examples/custom-node/src/lib.rs +++ b/examples/custom-node/src/lib.rs @@ -1,4 +1,4 @@ -//! This example shows how implement a custom node. +//! This example shows how to implement a custom node. //! //! A node consists of: //! - primitives: block,header,transactions diff --git a/examples/custom-payload-builder/src/main.rs b/examples/custom-payload-builder/src/main.rs index 45e9d214c4..c38b46a5b9 100644 --- a/examples/custom-payload-builder/src/main.rs +++ b/examples/custom-payload-builder/src/main.rs @@ -1,4 +1,4 @@ -//! Example for how hook into the node via the CLI extension mechanism without registering +//! Example for how to hook into the node via the CLI extension mechanism without registering //! additional arguments //! //! Run with diff --git a/testing/ef-tests/src/cases/blockchain_test.rs b/testing/ef-tests/src/cases/blockchain_test.rs index 9cc70ff5b4..75ff73101d 100644 --- a/testing/ef-tests/src/cases/blockchain_test.rs +++ b/testing/ef-tests/src/cases/blockchain_test.rs @@ -136,7 +136,7 @@ impl BlockchainTestCase { // Since it is unexpected, we treat it as a test failure. // // One reason for this happening is when one forgets to wrap the error from `run_case` - // so that it produces a `Error::BlockProcessingFailed` + // so that it produces an `Error::BlockProcessingFailed` Err(other) => Err(other), } } @@ -327,7 +327,7 @@ fn run_case(case: &BlockchainTest) -> Result<(), Error> { } } None => { - // Some test may not have post-state (e.g., state-heavy benchmark tests). + // Some tests may not have post-state (e.g., state-heavy benchmark tests). // In this case, we can skip the post-state validation. } } @@ -408,7 +408,7 @@ pub fn should_skip(path: &Path) -> bool { | "typeTwoBerlin.json" // Test checks if nonce overflows. We are handling this correctly but we are not parsing - // exception in testsuite There are more nonce overflow tests that are internal + // exception in testsuite. There are more nonce overflow tests that are internal // call/create, and those tests are passing and are enabled. | "CreateTransactionHighNonce.json" diff --git a/testing/testing-utils/src/generators.rs b/testing/testing-utils/src/generators.rs index b35ae13a81..52aa8eab66 100644 --- a/testing/testing-utils/src/generators.rs +++ b/testing/testing-utils/src/generators.rs @@ -87,7 +87,7 @@ pub fn rng_with_seed(seed: &[u8]) -> StdRng { /// The parent hash of the first header /// in the result will be equal to `head`. /// -/// The headers are assumed to not be correct if validated. +/// The headers are assumed not to be correct if validated. pub fn random_header_range( rng: &mut R, range: Range, @@ -118,7 +118,7 @@ pub fn random_block_with_parent( /// Generate a random [`SealedHeader`]. /// -/// The header is assumed to not be correct if validated. +/// The header is assumed not to be correct if validated. pub fn random_header(rng: &mut R, number: u64, parent: Option) -> SealedHeader { let header = alloy_consensus::Header { number,