diff --git a/ethers-contract/ethers-contract-abigen/src/contract/structs.rs b/ethers-contract/ethers-contract-abigen/src/contract/structs.rs index 850f65e86..2d1f146eb 100644 --- a/ethers-contract/ethers-contract-abigen/src/contract/structs.rs +++ b/ethers-contract/ethers-contract-abigen/src/contract/structs.rs @@ -225,7 +225,7 @@ pub struct InternalStructs { /// from ethabi. pub(crate) function_params: HashMap<(String, String), String>, - /// (function name) -> Vec all structs the function returns + /// (function name) -> `Vec` all structs the function returns pub(crate) outputs: HashMap>, /// (event name, idx) -> struct which are the identifying properties we get the name diff --git a/ethers-core/src/abi/human_readable/mod.rs b/ethers-core/src/abi/human_readable/mod.rs index 192fa42c9..db5d97ac5 100644 --- a/ethers-core/src/abi/human_readable/mod.rs +++ b/ethers-core/src/abi/human_readable/mod.rs @@ -23,7 +23,7 @@ pub struct AbiParser { /// /// Note: we need to map the index of the event here because events can contain nameless inputs pub event_params: HashMap<(String, usize), String>, - /// (function name) -> Vec all structs the function returns + /// (function name) -> `Vec` all structs the function returns pub outputs: HashMap>, } diff --git a/ethers-core/src/types/block.rs b/ethers-core/src/types/block.rs index e091f298c..ebf45e425 100644 --- a/ethers-core/src/types/block.rs +++ b/ethers-core/src/types/block.rs @@ -14,7 +14,7 @@ use thiserror::Error; /// The block type returned from RPC calls. /// This is generic over a `TX` type which will be either the hash or the full transaction, -/// i.e. `Block` or Block`. +/// i.e. `Block` or `Block`. #[derive(Debug, Default, Clone, PartialEq, Eq, Deserialize, Serialize)] pub struct Block { /// Hash of the block diff --git a/ethers-solc/src/artifact_output/mod.rs b/ethers-solc/src/artifact_output/mod.rs index e6f27a704..e1ec2854d 100644 --- a/ethers-solc/src/artifact_output/mod.rs +++ b/ethers-solc/src/artifact_output/mod.rs @@ -62,7 +62,7 @@ impl ArtifactId { self } - /// Returns a : slug that identifies an artifact + /// Returns a `:` slug that identifies an artifact /// /// Note: This identifier is not necessarily unique. If two contracts have the same name, they /// will share the same slug. For a unique identifier see [ArtifactId::identifier]. @@ -70,12 +70,12 @@ impl ArtifactId { format!("{}.json:{}", self.path.file_stem().unwrap().to_string_lossy(), self.name) } - /// Returns a : slug that uniquely identifies an artifact + /// Returns a `:` slug that uniquely identifies an artifact pub fn identifier(&self) -> String { format!("{}:{}", self.source.to_string_lossy(), self.name) } - /// Returns a : slug that identifies an artifact + /// Returns a `:` slug that identifies an artifact pub fn slug_versioned(&self) -> String { format!( "{}.{}.{}.{}.json:{}",