Skip to content

Commit 10da02f

Browse files
authored
fix: clarify boolean return docs (#3586)
1 parent 17e1dde commit 10da02f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/provider/src/ext/anvil.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub trait AnvilApi<N: Network>: Send + Sync {
2323
/// Stops impersonating an account if previously set with `anvil_impersonateAccount`.
2424
async fn anvil_stop_impersonating_account(&self, address: Address) -> TransportResult<()>;
2525

26-
/// If set to true will make every account impersonated.
26+
/// If set to `true`, impersonates all accounts.
2727
async fn anvil_auto_impersonate_account(&self, enabled: bool) -> TransportResult<()>;
2828

2929
/// Impersonates the `from` address in the given transaction request, optionally funds the

crates/provider/src/ext/net.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use alloy_transport::TransportResult;
77
#[cfg_attr(target_family = "wasm", async_trait::async_trait(?Send))]
88
#[cfg_attr(not(target_family = "wasm"), async_trait::async_trait)]
99
pub trait NetApi<N>: Send + Sync {
10-
/// Returns a `bool` indicating whether or not the node is listening for network connections.
10+
/// Returns `true` if the node is listening for network connections.
1111
async fn net_listening(&self) -> TransportResult<bool>;
1212
/// Returns the number of peers connected to the node.
1313
async fn net_peer_count(&self) -> TransportResult<u64>;
14-
/// Returns the network ID (e.g. 1 for mainnet).
14+
/// Returns the network ID (for example, `1` for mainnet).
1515
async fn net_version(&self) -> TransportResult<u64>;
1616
}
1717

0 commit comments

Comments
 (0)