Skip to content

Commit 442de10

Browse files
committed
Merge #786: Minor: fix missing import in doc example
7b7085f Minor: fix missing import in doc example (Peter Todd) Pull request description: Also, how do I get the doc-tests to actually test this example? ACKs for top commit: Kixunil: ACK 7b7085f apoelstra: ACK 7b7085f; successfully ran local tests Tree-SHA512: 21b839122f450cd4eea09bc4119e2f89ae31af7a6ebf8f732a06f7ad773f18fc975027a1508d1ba671cea8b414be8b10b79316af46fd5df0328d4b26adf2848d
2 parents b6fd763 + 7b7085f commit 442de10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
//!
4848
//! ```rust
4949
//! # #[cfg(all(feature = "global-context", feature = "hashes", feature = "rand", feature = "std"))] {
50-
//! use secp256k1::{generate_keypair, Message};
50+
//! use secp256k1::{rand, generate_keypair, Message};
5151
//! use secp256k1::hashes::{sha256, Hash};
5252
//!
5353
//! let (secret_key, public_key) = generate_keypair(&mut rand::thread_rng());

0 commit comments

Comments
 (0)