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:
parent
f52301151c
commit
277e8e96bd
|
@ -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()));
|
||||||
|
|
Loading…
Reference in New Issue