Improve docs on method generate_keypair
Improve method docs by doing: - Remove 'batch' comment - Remove mention of required features, docs already show this - Use links to types as well as ticks
This commit is contained in:
parent
da3c24c56e
commit
4c4268f1ad
|
@ -434,10 +434,8 @@ impl<C: Context> Secp256k1<C> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<C: Signing> Secp256k1<C> {
|
impl<C: Signing> Secp256k1<C> {
|
||||||
/// Generates a random keypair. Convenience function for `key::SecretKey::new`
|
/// Generates a random keypair. Convenience function for [`SecretKey::new`] and
|
||||||
/// and `key::PublicKey::from_secret_key`; call those functions directly for
|
/// [`PublicKey::from_secret_key`].
|
||||||
/// batch key generation. Requires a signing-capable context. Requires compilation
|
|
||||||
/// with the "rand" feature.
|
|
||||||
#[inline]
|
#[inline]
|
||||||
#[cfg(any(test, feature = "rand"))]
|
#[cfg(any(test, feature = "rand"))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
|
||||||
|
|
Loading…
Reference in New Issue