Skip to content

Commit 87a3f16

Browse files
Merge rust-bitcoin/rust-secp256k1#786: Minor: fix missing import in doc example
7b7085f5afe28357134f68ccc85500eb317fa522 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 7b7085f5afe28357134f68ccc85500eb317fa522 apoelstra: ACK 7b7085f5afe28357134f68ccc85500eb317fa522; successfully ran local tests Tree-SHA512: 21b839122f450cd4eea09bc4119e2f89ae31af7a6ebf8f732a06f7ad773f18fc975027a1508d1ba671cea8b414be8b10b79316af46fd5df0328d4b26adf2848d
2 parents 2979c18 + fbbeb28 commit 87a3f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
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)