Skip to content

chore(all): remove duplicate words #10334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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 crates/anvil/src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ pub struct AnvilEvmArgs {

/// Fetch state from a specific block number over a remote endpoint.
///
/// If a negative the the given value is subtracted from the `latest` block number.
/// If a negative the given value is subtracted from the `latest` block number.
///
/// See --fork-url.
#[arg(
Expand Down
2 changes: 1 addition & 1 deletion crates/anvil/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ async fn derive_block_and_transactions(
pub enum ForkChoice {
/// Block number to fork from.
///
/// f a negative the the given value is subtracted from the `latest` block number.
/// f a negative the given value is subtracted from the `latest` block number.
Block(i128),
/// Transaction hash to fork from
Transaction(TxHash),
Expand Down
2 changes: 1 addition & 1 deletion crates/cast/src/cmd/find_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl FindBlockArgs {
let mut high_block = last_block_num;
let mut matching_block = None;
while high_block > low_block && matching_block.is_none() {
// Get timestamp of middle block (this approach approach to avoids overflow)
// Get timestamp of middle block (this approach to avoids overflow)
let high_minus_low_over_2 = high_block
.checked_sub(low_block)
.ok_or_else(|| eyre::eyre!("unexpected underflow"))
Expand Down
2 changes: 1 addition & 1 deletion crates/cheatcodes/src/evm/prank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Prank {
pub depth: u64,
/// Whether the prank stops by itself after the next call
pub single_call: bool,
/// Whether the prank should be be applied to delegate call
/// Whether the prank should be applied to delegate call
pub delegate_call: bool,
/// Whether the prank has been used yet (false if unused)
pub used: bool,
Expand Down
2 changes: 1 addition & 1 deletion crates/chisel/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ impl Type {
}

// Check if the first element of the custom type is a known contract. If it is, begin
// our recursion on on that contract's definitions.
// our recursion on that contract's definitions.
let name = custom_type.last().unwrap();
let contract = intermediate.intermediate_contracts.get(name);
if contract.is_some() {
Expand Down
2 changes: 1 addition & 1 deletion crates/doc/src/writer/buf_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl BufWriter {
self.write_list_item(&link.as_doc()?, depth)
}

/// Writes a solidity code block block to the buffer.
/// Writes a solidity code block to the buffer.
pub fn write_code(&mut self, code: &str) -> fmt::Result {
writeln!(self.buf, "{}", Markdown::CodeBlock(SOLIDITY, code))
}
Expand Down
2 changes: 1 addition & 1 deletion crates/fmt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To insert the comments into the appropriate areas, strings get converted to chun
before being written to the buffer. A chunk is any string that cannot be split by
whitespace. A chunk also carries with it the surrounding comment information. Thereby
when writing the chunk the comments can be added before and after the chunk as well
as any any whitespace surrounding.
as any whitespace surrounding.

To construct a chunk, the string and the location of the string is given to the
Formatter and the pre-parsed comments before the start and end of the string are
Expand Down
2 changes: 1 addition & 1 deletion crates/fmt/src/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3252,7 +3252,7 @@ impl<W: Write> Visitor for Formatter<'_, W> {
let is_constructor = self.context.is_constructor_function();
// we can't make any decisions here regarding trailing `()` because we'd need to
// find out if the `base` is a solidity modifier or an
// interface/contract therefore we we its raw content.
// interface/contract therefore we use its raw content.

// we can however check if the contract `is` the `base`, this however also does
// not cover all cases
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/tests/it/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ async fn test_trace() {
assert_eq!(
execution_traces.count(),
1,
"Test {test_name} did not not have exactly 1 execution trace."
"Test {test_name} did not have exactly 1 execution trace."
);
}
}
Expand Down