Skip to content

Commit d0e59e4

Browse files
committed
doc: fix broken link and stranded doccomment
(The stranded doccomment was associated with commented-out code, but rustdoc was applying it to the nearest non-commented-out item. Just delete all the commented-out stuff since we're not going to reenable it in 12.x.)
1 parent 9e6d6c5 commit d0e59e4

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/descriptor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ impl Descriptor<DescriptorPublicKey> {
648648
/// See [`at_derivation_index`] and `[derived_descriptor`] for more documentation.
649649
///
650650
/// [`at_derivation_index`]: Self::at_derivation_index
651-
/// [`derived_descriptor`]: crate::DerivedDescriptor::derived_descriptor
651+
/// [`derived_descriptor`]: crate::Descriptor::derived_descriptor
652652
///
653653
/// # Errors
654654
///

src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -401,16 +401,6 @@ where
401401
T: Translator<P, Q, E>;
402402
}
403403

404-
/// Either a key or keyhash, but both contain Pk
405-
// pub struct ForEach<'a, Pk: MiniscriptKey>(&'a Pk);
406-
407-
// impl<'a, Pk: MiniscriptKey<Hash = Pk>> ForEach<'a, Pk> {
408-
// /// Convenience method to avoid distinguishing between keys and hashes when these are the same type
409-
// pub fn as_key(&self) -> &'a Pk {
410-
// self.0
411-
// }
412-
// }
413-
414404
/// Trait describing the ability to iterate over every key
415405
pub trait ForEachKey<Pk: MiniscriptKey> {
416406
/// Run a predicate on every key in the descriptor, returning whether

0 commit comments

Comments
 (0)