chore: doc fmt (#1094)

This commit is contained in:
thesimplekid
2025-09-20 16:49:53 +01:00
committed by GitHub
parent aeafab9a10
commit 2becc4be21

View File

@@ -801,17 +801,17 @@ impl MultiMintWallet {
/// # async fn example(wallet: MultiMintWallet) -> Result<(), Box<dyn std::error::Error>> {
/// // Receive from a trusted mint
/// let token = "cashuAey...";
/// let amount = wallet.receive(token, MultiMintReceiveOptions::default()).await?;
/// let amount = wallet
/// .receive(token, MultiMintReceiveOptions::default())
/// .await?;
///
/// // Receive from untrusted mint and add it to the wallet
/// let options = MultiMintReceiveOptions::default()
/// .allow_untrusted(true);
/// let options = MultiMintReceiveOptions::default().allow_untrusted(true);
/// let amount = wallet.receive(token, options).await?;
///
/// // Receive from untrusted mint, transfer to trusted mint, then remove untrusted mint
/// let trusted_mint: MintUrl = "https://trusted.mint".parse()?;
/// let options = MultiMintReceiveOptions::default()
/// .transfer_to_mint(Some(trusted_mint));
/// let options = MultiMintReceiveOptions::default().transfer_to_mint(Some(trusted_mint));
/// let amount = wallet.receive(token, options).await?;
/// # Ok(())
/// # }