From a915766840f655bc345c6e09cd33c28ed7b0481d Mon Sep 17 00:00:00 2001 From: Tronica Date: Tue, 18 Feb 2025 02:11:13 +0100 Subject: [PATCH] Fix spelling errors and correct minor errors (#337) * fix typo lib.rs * fix typos mod.rs * fix typo config.rs --- node/network/src/config.rs | 2 +- version-meld/enr/src/keys/mod.rs | 4 ++-- version-meld/enr/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/node/network/src/config.rs b/node/network/src/config.rs index 2f44dff..da8ffd9 100644 --- a/node/network/src/config.rs +++ b/node/network/src/config.rs @@ -103,7 +103,7 @@ pub struct Config { /// Subscribe to all subnets for the duration of the runtime. pub subscribe_all_subnets: bool, - /// Import/aggregate all attestations recieved on subscribed subnets for the duration of the + /// Import/aggregate all attestations received on subscribed subnets for the duration of the /// runtime. pub import_all_attestations: bool, diff --git a/version-meld/enr/src/keys/mod.rs b/version-meld/enr/src/keys/mod.rs index f54a77e..309a8b4 100644 --- a/version-meld/enr/src/keys/mod.rs +++ b/version-meld/enr/src/keys/mod.rs @@ -42,9 +42,9 @@ pub trait EnrKey: Send + Sync + Unpin + 'static { /// Returns the public key associated with current key pair. fn public(&self) -> Self::PublicKey; - /// Provides a method to decode a raw public key from an ENR `BTreeMap` to a useable public key. + /// Provides a method to decode a raw public key from an ENR `BTreeMap` to a usable public key. /// - /// This method allows a key type to decode the raw bytes in an ENR to a useable + /// This method allows a key type to decode the raw bytes in an ENR to a usable /// `EnrPublicKey`. It takes the ENR's `BTreeMap` and returns a public key. /// /// Note: This specifies the supported key schemes for an ENR. diff --git a/version-meld/enr/src/lib.rs b/version-meld/enr/src/lib.rs index 7d258e4..04acc87 100644 --- a/version-meld/enr/src/lib.rs +++ b/version-meld/enr/src/lib.rs @@ -1195,7 +1195,7 @@ mod tests { assert_eq!(enr.tcp4(), Some(tcp)); assert!(enr.verify()); - // Compare the encoding as the key itself can be differnet + // Compare the encoding as the key itself can be different assert_eq!(enr.public_key().encode(), key.public().encode(),); }