fmt: format doc comments (#5308)

This commit is contained in:
DaniPopes
2023-11-05 14:06:30 +01:00
committed by GitHub
parent f9c46bf426
commit 470449ff24
26 changed files with 207 additions and 160 deletions

View File

@ -153,11 +153,10 @@ where
/// # Example
///
/// ```rust
/// use reth::cli::components::RethRpcServerHandles;
/// use reth::rpc::api::EthApiClient;
/// use reth::{cli::components::RethRpcServerHandles, rpc::api::EthApiClient};
/// # async fn t(handles: RethRpcServerHandles) {
/// let client = handles.rpc.http_client().expect("http server not started");
/// let block_number = client.block_number().await.unwrap();
/// let client = handles.rpc.http_client().expect("http server not started");
/// let block_number = client.block_number().await.unwrap();
/// # }
/// ```
#[derive(Debug, Clone)]

View File

@ -94,7 +94,7 @@ pub trait XdgPath {
/// # Example
///
/// ```
/// use reth::dirs::{PlatformPath, DataDirPath};
/// use reth::dirs::{DataDirPath, PlatformPath};
/// use std::str::FromStr;
///
/// // Resolves to the platform-specific database path