Skip to content

Commit 432c49b

Browse files
committed
Remove reference to private types
The compiler emits various warnings of type: warning: public documentation for ... Remove the docs that include links to private methods and types.
1 parent 1d194d3 commit 432c49b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/descriptor/key.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,10 @@ impl fmt::Display for DescriptorPublicKey {
242242
}
243243

244244
impl DescriptorSecretKey {
245-
/// Return the public version of this key, by applying either
246-
/// [`SinglePriv::to_public`] or [`DescriptorXKey<bip32::ExtendedPrivKey>::to_public`]
247-
/// depending on the type of key.
245+
/// Returns the public version of this key.
248246
///
249-
/// If the key is an "XPrv", the hardened derivation steps will be applied before converting it
250-
/// to a public key. See the documentation of [`DescriptorXKey<bip32::ExtendedPrivKey>::to_public`]
251-
/// for more details.
247+
/// If the key is an "XPrv", the hardened derivation steps will be applied
248+
/// before converting it to a public key.
252249
pub fn to_public<C: Signing>(
253250
&self,
254251
secp: &Secp256k1<C>,

0 commit comments

Comments
 (0)