From 2b69e396e55f00540287074a9c4382b3f20affd2 Mon Sep 17 00:00:00 2001 From: beforetech Date: Thu, 1 Aug 2024 00:29:51 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: beforetech --- ethers-contract/ethers-contract-derive/src/abigen.rs | 2 +- ethers-contract/ethers-contract-derive/src/event.rs | 2 +- ethers-core/src/utils/ganache.rs | 2 +- ethers-solc/src/artifacts/contract.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ethers-contract/ethers-contract-derive/src/abigen.rs b/ethers-contract/ethers-contract-derive/src/abigen.rs index 5e87e75f3..dba86af51 100644 --- a/ethers-contract/ethers-contract-derive/src/abigen.rs +++ b/ethers-contract/ethers-contract-derive/src/abigen.rs @@ -83,7 +83,7 @@ impl Parse for ContractArgs { // abi // TODO(nlordell): Due to limitation with the proc-macro Span API, we - // can't currently get a path the the file where we were called from; + // can't currently get a path the file where we were called from; // therefore, the path will always be rooted on the cargo manifest // directory. Eventually we can use the `Span::source_file` API to // have a better experience. diff --git a/ethers-contract/ethers-contract-derive/src/event.rs b/ethers-contract/ethers-contract-derive/src/event.rs index d6765c489..b42a2d0d6 100644 --- a/ethers-contract/ethers-contract-derive/src/event.rs +++ b/ethers-contract/ethers-contract-derive/src/event.rs @@ -27,7 +27,7 @@ pub(crate) fn derive_eth_event_impl(input: DeriveInput) -> Result { // elementary types in their abi because the parser // doesn't know how to substitute the types. // This could be mitigated by getting the ABI of each non elementary type - // at runtime and computing the the signature as a Lazy static. + // at runtime and computing the signature as a Lazy static. match HumanReadableParser::parse_event(&abi) { Ok(event) => Ok(event), // Ignore parse_err since this is a valid [Source] diff --git a/ethers-core/src/utils/ganache.rs b/ethers-core/src/utils/ganache.rs index 42141225c..04c05e705 100644 --- a/ethers-core/src/utils/ganache.rs +++ b/ethers-core/src/utils/ganache.rs @@ -96,7 +96,7 @@ impl Ganache { } /// Sets the startup timeout which will be used when the `ganache-cli` instance is launched in - /// miliseconds. 10_000 miliseconds by default). + /// milliseconds. 10_000 milliseconds by default). pub fn startup_timeout_millis>(mut self, timeout: T) -> Self { self.startup_timeout = Some(timeout.into()); self diff --git a/ethers-solc/src/artifacts/contract.rs b/ethers-solc/src/artifacts/contract.rs index 874a11f89..831498fe7 100644 --- a/ethers-solc/src/artifacts/contract.rs +++ b/ethers-solc/src/artifacts/contract.rs @@ -303,7 +303,7 @@ impl CompactContract { /// /// # Panics /// - /// Panics if any of the fields euqal `None` + /// Panics if any of the fields equal `None` /// /// # Example ///