Add rand feature flag to the example documentation
This commit is contained in:
parent
e16b9bdb20
commit
f7a6d17143
|
@ -21,6 +21,12 @@
|
|||
//! // Generate pay-to-pubkey-hash address.
|
||||
//! let address = Address::p2pkh(&public_key, Network::Bitcoin);
|
||||
//! ```
|
||||
//!
|
||||
//! # Note: creating a new address requires the rand feature flag
|
||||
//!
|
||||
//! ```toml
|
||||
//! bitcoin = { version = "...", features = ["rand"] }
|
||||
//! ```
|
||||
|
||||
use core::convert::TryFrom;
|
||||
use core::fmt;
|
||||
|
|
Loading…
Reference in New Issue