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:
Tobin Harding 2022-01-13 16:45:05 +11:00
parent da3c24c56e
commit 4c4268f1ad
1 changed files with 2 additions and 4 deletions

View File

@ -434,10 +434,8 @@ impl<C: Context> Secp256k1<C> {
}
impl<C: Signing> Secp256k1<C> {
/// Generates a random keypair. Convenience function for `key::SecretKey::new`
/// and `key::PublicKey::from_secret_key`; call those functions directly for
/// batch key generation. Requires a signing-capable context. Requires compilation
/// with the "rand" feature.
/// Generates a random keypair. Convenience function for [`SecretKey::new`] and
/// [`PublicKey::from_secret_key`].
#[inline]
#[cfg(any(test, feature = "rand"))]
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]