forked from rust-bitcoin/rust-bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge rust-bitcoin#3756: units::Amount Make rustdocs conform to the A…
…PI guidelines 01b58d6 Add rustdoc examples (Jamil Lambert, PhD) b881f1b Add `# Errors` to rustdocs (Jamil Lambert, PhD) 66f36b3 Correct doc errors and add links in `unsigned` (Jamil Lambert, PhD) Pull request description: Update rustdocs in `units::Amount` to conform to the API guidelines. `# Examples` API guideline quote: > "is not always to show how to use the item. ... Rather, an example is often intended to show why someone would want to use the item." This guideline is subjective, and in the cases in `Amount` the why is often trivial. Where the example is trivial it has been included once, and for similar functions left off e.g. included for `from_sat` but not `from_btc`, etc. ACKs for top commit: tcharding: ACK 01b58d6 apoelstra: ACK 01b58d6; successfully ran local tests Tree-SHA512: 5dde89949e0091f166b9903d28ca44275ca3d283de4ef1b6142dba88f0c45e9ba0a8f7cefa0c36a0f1e3e9e2b61d4992f0d3324d30c09b9877b481e9f343002a
- Loading branch information
Showing
1 changed file
with
87 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters