-
Notifications
You must be signed in to change notification settings - Fork 831
Add rand feature flag to the example documentation #1416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rand feature flag to the example documentation #1416
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 50a665d966f95b310353a91d11da6a7da24261f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
bitcoin/src/address.rs
Outdated
//! # Note: creating a new address requires the rand feature flag | ||
//! | ||
//! ```rust | ||
//! bitcoin = { version = "0.29.2", features = ["rand"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version tag here is gonna go out of date quick, can you just put a dummy value there?
50a665d
to
28fdbba
Compare
bitcoin/src/address.rs
Outdated
//! # Note: creating a new address requires the rand feature flag | ||
//! | ||
//! ```rust | ||
//! bitcoin = { version = "*", features = ["rand"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheBlueMatt good point - the wild card operator works better here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 28fdbbaba8d201bd343c875bff36302d07b164ad
Thanks for the contribution man! I built the docs and verified that it looks good in HTML. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is sad because bitcoin = {}
is not valid rust code.
f7a6d17
28fdbba
to
f7a6d17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK f7a6d17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK f7a6d17
It's confusing trying to follow the documentation here unless you know to enable the
rand
feature flag. This PR updates the docs so people know to enable the flag.