From 17c008e915f22686bfdc769e7140e8c50e6b8a61 Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:50:02 +0800 Subject: [PATCH] fix typos (#2651) --- book/SUMMARY.md | 2 +- book/subscriptions/multiple-subscriptions.md | 2 +- ethers-providers/src/toolbox/pending_escalator.rs | 2 +- ethers-solc/src/compile/mod.rs | 2 +- ethers-solc/src/remappings.rs | 2 +- examples/transactions/examples/remove_liquidity.rs | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/book/SUMMARY.md b/book/SUMMARY.md index 63ffba6fd..9dfab84f6 100644 --- a/book/SUMMARY.md +++ b/book/SUMMARY.md @@ -45,7 +45,7 @@ - [Watch blocks](./subscriptions/watch-blocks.md) - [Subscribe events by type](./subscriptions/events-by-type.md) - [Subscribe logs](./subscriptions/logs.md) - - [Mulitple subscriptions](./subscriptions/multiple-subscriptions.md) + - [Multiple subscriptions](./subscriptions/multiple-subscriptions.md) - [Queries]() - [Blocks]() - [Contracts]() diff --git a/book/subscriptions/multiple-subscriptions.md b/book/subscriptions/multiple-subscriptions.md index bb963fae3..793792f81 100644 --- a/book/subscriptions/multiple-subscriptions.md +++ b/book/subscriptions/multiple-subscriptions.md @@ -1,4 +1,4 @@ -# Mulitple Multiple Subscriptions +# Multiple Subscriptions You may need to handle multiple subscriptions simultaneously in your application. To manage multiple SubscriptionStreams, you can use the futures crate to efficiently process updates from all streams concurrently: diff --git a/ethers-providers/src/toolbox/pending_escalator.rs b/ethers-providers/src/toolbox/pending_escalator.rs index b77135257..f3f33e18c 100644 --- a/ethers-providers/src/toolbox/pending_escalator.rs +++ b/ethers-providers/src/toolbox/pending_escalator.rs @@ -180,7 +180,7 @@ where match this.state { // In the initial state we're simply waiting on the first - // transaction braodcast to complete. + // transaction broadcast to complete. Initial(fut) => { poll_broadcast_fut!(cx, this, fut); } diff --git a/ethers-solc/src/compile/mod.rs b/ethers-solc/src/compile/mod.rs index e7069f296..3eab46361 100644 --- a/ethers-solc/src/compile/mod.rs +++ b/ethers-solc/src/compile/mod.rs @@ -148,7 +148,7 @@ pub struct Solc { pub solc: PathBuf, /// The base path to set when invoking solc, see also pub base_path: Option, - /// Additional arguments passed to the `solc` exectuable + /// Additional arguments passed to the `solc` executable pub args: Vec, } diff --git a/ethers-solc/src/remappings.rs b/ethers-solc/src/remappings.rs index 43407c47f..179172e6f 100644 --- a/ethers-solc/src/remappings.rs +++ b/ethers-solc/src/remappings.rs @@ -406,7 +406,7 @@ impl RelativeRemappingPathBuf { &self.path } - /// Returns this path relative to the file it was delcared in, if any. + /// Returns this path relative to the file it was declared in, if any. /// Returns the original if this path was not declared in a file or if the /// path has a root. pub fn relative(&self) -> PathBuf { diff --git a/examples/transactions/examples/remove_liquidity.rs b/examples/transactions/examples/remove_liquidity.rs index 587f64362..7db074ca4 100644 --- a/examples/transactions/examples/remove_liquidity.rs +++ b/examples/transactions/examples/remove_liquidity.rs @@ -68,7 +68,7 @@ async fn example() -> Result<()> { println!("Approving the transaction!"); let receipt = pair.approve(router.address(), liquidity).send().await?.await?.expect("no receipt found"); - println!("contract approved succesfully!"); + println!("contract approved successfully!"); println!("{receipt:?}"); println!("Removing {liquidity} liquidity!"); @@ -90,7 +90,7 @@ async fn example() -> Result<()> { .await? .await? .expect("no receipt for remove_liquidity"); - println!("liquidity removed succesfully!"); + println!("liquidity removed successfully!"); println!("{receipt:?}"); Ok(())