Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

chore: fix some comments #2766

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ethers-contract/ethers-contract-abigen/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ pub(crate) fn derive_builtin_traits<'a>(
extend_derives(stream, derive_default, derive_others);
}

/// This has to be a seperate function since a sol struct is converted into a tuple, but for
/// This has to be a separate function since a sol struct is converted into a tuple, but for
/// deriving purposes it shouldn't count as one, so we recurse back the struct fields.
pub(crate) fn derive_builtin_traits_struct(
structs: &InternalStructs,
Expand Down
4 changes: 2 additions & 2 deletions ethers-contract/ethers-contract-derive/src/abigen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -148,7 +148,7 @@ impl Parse for Parameter {
}
}

/// An explicitely named contract method.
/// An explicitly named contract method.
#[derive(Clone, Debug, PartialEq, Eq)]
struct Method {
signature: String,
Expand Down
2 changes: 1 addition & 1 deletion ethers-contract/ethers-contract-derive/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub(crate) fn derive_eth_event_impl(input: DeriveInput) -> Result<TokenStream> {
// 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]
Expand Down
2 changes: 1 addition & 1 deletion ethers-contract/ethers-contract-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub(crate) mod utils;
/// Additionally, this macro accepts additional parameters to configure some aspects of the code
/// generation:
/// - `methods`: A list of mappings from method signatures to method names allowing methods names to
/// be explicitely set for contract methods. This also provides a workaround for generating code
/// be explicitly set for contract methods. This also provides a workaround for generating code
/// for contracts with multiple methods with the same name.
/// - `derives`: A list of additional derive macros that are added to all the generated structs and
/// enums, after the default ones which are ([when applicable][tuple_derive_ref]):
Expand Down
2 changes: 1 addition & 1 deletion ethers-core/src/types/trace/geth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ pub mod spoof {
}
}

/// Wraps a map from storage slot to the overriden value.
/// Wraps a map from storage slot to the overridden value.
///
/// Storage overrides can either replace the existing state of an account or they can be treated
/// as a diff on the existing state.
Expand Down
2 changes: 1 addition & 1 deletion ethers-providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ethers-providers = { version = "2.0", features = ["ipc"] }
The provider may also be used to resolve [Ethereum Name Service](https://ens.domains) (ENS) names
to addresses (and vice versa).
The default ENS address is [`0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e`][ens]
and can be overriden with the [`ens`](./struct.Provider.html#method.ens) method on the provider.
and can be overridden with the [`ens`](./struct.Provider.html#method.ens) method on the provider.

[ens]: https://etherscan.io/address/0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e

Expand Down
2 changes: 1 addition & 1 deletion ethers-providers/src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ pub trait Middleware: Sync + Send + Debug {
self.inner().resolve_avatar(ens_name).await.map_err(MiddlewareError::from_err)
}

/// Returns the URL (not necesserily HTTP) of the image behind a token.
/// Returns the URL (not necessarily HTTP) of the image behind a token.
///
/// # Example
/// ```no_run
Expand Down
2 changes: 1 addition & 1 deletion ethers-providers/src/rpc/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ mod tests {
assert_eq!(tx.gas(), Some(&gas));
assert_eq!(tx.access_list(), Some(&Default::default()));

// --- propogates estimate_gas() error
// --- propagates estimate_gas() error
let mut tx = Eip1559TransactionRequest::new()
.max_fee_per_gas(max_fee)
.max_priority_fee_per_gas(prio_fee)
Expand Down
2 changes: 1 addition & 1 deletion ethers-providers/src/rpc/transports/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ async fn run_ipc_server(mut stream: Stream, request_rx: mpsc::UnboundedReceiver<
};

// split the stream and run two independent concurrently (local), thereby
// allowing reads and writes to occurr concurrently
// allowing reads and writes to occur concurrently
let (reader, writer) = stream.split();
let read = shared.handle_ipc_reads(reader);
let write = shared.handle_ipc_writes(writer, request_rx);
Expand Down
2 changes: 1 addition & 1 deletion ethers-providers/src/toolbox/call_raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl<'a, P> Caller<'a, P> {
}
}
impl<'a, P: JsonRpcClient> Caller<'a, P> {
/// Executes an `eth_call` rpc request with the overriden parameters. Returns a future that
/// Executes an `eth_call` rpc request with the overridden parameters. Returns a future that
/// resolves to the result of the request.
fn execute(&self) -> impl Future<Output = Result<Bytes, ProviderError>> + 'a {
self.provider.request("eth_call", utils::serialize(&self.input))
Expand Down