Bläddra i källkod

chore: doc fmt (#1094)

thesimplekid 1 månad sedan
förälder
incheckning
2becc4be21
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5 5
      crates/cdk/src/wallet/multi_mint_wallet.rs

+ 5 - 5
crates/cdk/src/wallet/multi_mint_wallet.rs

@@ -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(())
     /// # }