Add KeyPair import to rustdoc example

Recently, and bizarrely, a PR merged that broke `cargo test --doc`.

Add an import for `KeyPair` to the `schnorr` rustdoc example.
This commit is contained in:
Tobin C. Harding 2023-02-02 12:21:41 +11:00
parent f52301151c
commit 277e8e96bd
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ pub type UntweakedKeyPair = KeyPair;
/// # Examples /// # Examples
/// ``` /// ```
/// # #[cfg(feature = "rand-std")] { /// # #[cfg(feature = "rand-std")] {
/// # use bitcoin::schnorr::{TweakedKeyPair, TweakedPublicKey}; /// # use bitcoin::schnorr::{KeyPair, TweakedKeyPair, TweakedPublicKey};
/// # use bitcoin::secp256k1::{rand, Secp256k1}; /// # use bitcoin::secp256k1::{rand, Secp256k1};
/// # let secp = Secp256k1::new(); /// # let secp = Secp256k1::new();
/// # let keypair = TweakedKeyPair::dangerous_assume_tweaked(KeyPair::new(&secp, &mut rand::thread_rng())); /// # let keypair = TweakedKeyPair::dangerous_assume_tweaked(KeyPair::new(&secp, &mut rand::thread_rng()));