]> Untitled Git - bdk/commitdiff
Fix doc links
authorLLFourn <lloyd.fourn@gmail.com>
Tue, 21 Feb 2023 06:34:53 +0000 (17:34 +1100)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Thu, 2 Mar 2023 09:56:30 +0000 (10:56 +0100)
.github/workflows/nightly_docs.yml
crates/bdk/src/descriptor/dsl.rs
crates/bdk/src/keys/mod.rs
crates/bdk/src/wallet/mod.rs
crates/bdk/src/wallet/persist.rs

index 1e3f6139465865d487e2c740d117bb1f17062661..a4a837c7a91e052e624cb7ecdd6a6b28667b85b8 100644 (file)
@@ -24,7 +24,9 @@ jobs:
       - name: Update toolchain
         run: rustup update
       - name: Build docs
-        run: cargo rustdoc --verbose --all-features -- --cfg docsrs -Dwarnings
+        run: cargo doc --no-deps
+        env:
+          RUSTDOCFLAGS: '--cfg docsrs -Dwarnings'
       - name: Upload artifact
         uses: actions/upload-artifact@v2
         with:
index e689a540afea463b531985a1cb02746794ea3970..60fac19e5bd16ac416cc24f9f4eb2825195d5c48 100644 (file)
@@ -495,6 +495,8 @@ macro_rules! apply_modifier {
 /// let (descriptor, key_map, networks) = bdk::descriptor!(wpkh(my_key))?;
 /// # Ok::<(), Box<dyn std::error::Error>>(())
 /// ```
+///
+/// [`Vec`]: alloc::vec::Vec
 #[macro_export]
 macro_rules! descriptor {
     ( bare ( $( $minisc:tt )* ) ) => ({
index 0f5e386e74cfeca445e4bf8a83d404c0aefc0777..e8c9ca07e2f5aa9bd94af10bfabf570a2e451cb3 100644 (file)
@@ -462,12 +462,11 @@ impl<Ctx: ScriptContext> From<bip32::ExtendedPrivKey> for ExtendedKey<Ctx> {
 /// [`ExtendedPubKey`]: (bip32::ExtendedPubKey)
 pub trait DerivableKey<Ctx: ScriptContext = miniscript::Legacy>: Sized {
     /// Consume `self` and turn it into an [`ExtendedKey`]
-    ///
-    /// This can be used to get direct access to `xprv`s and `xpub`s for types that implement this trait,
-    /// like [`Mnemonic`](bip39::Mnemonic) when the `keys-bip39` feature is enabled.
     #[cfg_attr(
         feature = "keys-bip39",
         doc = r##"
+This can be used to get direct access to `xprv`s and `xpub`s for types that implement this trait,
+like [`Mnemonic`](bip39::Mnemonic) when the `keys-bip39` feature is enabled.
 ```rust
 use bdk::bitcoin::Network;
 use bdk::keys::{DerivableKey, ExtendedKey};
index 862a5d68c7f50b74ff5db48a5fcffbaae0b35583..e812048f132ff6cbf8bfdbcecb1bc5367f99484a 100644 (file)
@@ -90,7 +90,7 @@ pub struct Wallet<D = ()> {
     secp: SecpCtx,
 }
 
-/// The update to a [`Wallet`] used in [Wallet::apply_update]. This is usually returned from blockchain data sources.
+/// The update to a [`Wallet`] used in [`Wallet::apply_update`]. This is usually returned from blockchain data sources.
 /// The type parameter `T` indicates the kind of transaction contained in the update. It's usually a [`bitcoin::Transaction`].
 pub type Update<T> = KeychainScan<KeychainKind, ConfirmationTime, T>;
 /// Error indicating that something was wrong with an [`Update<T>`].
@@ -1689,7 +1689,7 @@ impl<D> Wallet<D> {
     /// transactions related to your wallet into it.
     ///
     /// [`commit`]: Self::commit
-    pub fn apply_udpate<Tx>(&mut self, update: Update<Tx>) -> Result<(), UpdateError>
+    pub fn apply_update<Tx>(&mut self, update: Update<Tx>) -> Result<(), UpdateError>
     where
         D: persist::Backend,
         Tx: IntoOwned<Transaction> + Clone,
index c6d65ce6e6185f0e281ad857908ef3235cc521e9..a947ef3c0e71a89666a8824fc9b3f3a9ac2a07d7 100644 (file)
@@ -6,6 +6,8 @@
 //!
 //! Note that `Wallet` does not read this persisted data during operation since it always has a copy
 //! in memory
+//!
+//! [`Wallet`]: crate::Wallet
 use crate::KeychainKind;
 use bdk_chain::{keychain::KeychainTracker, ConfirmationTime};
 
@@ -13,6 +15,8 @@ use bdk_chain::{keychain::KeychainTracker, ConfirmationTime};
 /// persisted. Not all changes made to the [`Wallet`] need to be written to disk right away so you
 /// can use [`Persist::stage`] to *stage* it first and then [`Persist::commit`] to finally write it
 /// to disk.
+///
+/// [`Wallet`]: crate::Wallet
 #[derive(Debug)]
 pub struct Persist<P> {
     backend: P,