Merge rust-bitcoin/rust-bitcoin#2716: docs: Make rustdoc imports more terse
47ac342056
docs: Make rustdoc imports more terse (Tobin C. Harding) Pull request description: Make the rustdoc imports in `hashes/src/lib.rs` more terse and also use as-underscore. ACKs for top commit: apoelstra: ACK47ac342056
nice :) Tree-SHA512: f684adba555495a08875663c7b78dde756d9213fdf775ea5d005d7a1a7cd49f3e93f60f0666ba96bc08b9f954dc069a72f3c95af68aec64964ba47094e6aeec4
This commit is contained in:
commit
a9cdcb4392
|
@ -12,8 +12,7 @@
|
|||
//! Hashing a single byte slice or a string:
|
||||
//!
|
||||
//! ```rust
|
||||
//! use bitcoin_hashes::sha256;
|
||||
//! use bitcoin_hashes::Hash;
|
||||
//! use bitcoin_hashes::{sha256, Hash as _};
|
||||
//!
|
||||
//! let bytes = [0u8; 5];
|
||||
//! let hash_of_bytes = sha256::Hash::hash(&bytes);
|
||||
|
@ -24,8 +23,7 @@
|
|||
//! Hashing content from a reader:
|
||||
//!
|
||||
//! ```rust
|
||||
//! use bitcoin_hashes::sha256;
|
||||
//! use bitcoin_hashes::Hash;
|
||||
//! use bitcoin_hashes::{sha256, Hash as _};
|
||||
//!
|
||||
//! #[cfg(std)]
|
||||
//! # fn main() -> std::io::Result<()> {
|
||||
|
@ -44,8 +42,7 @@
|
|||
//! Hashing content by [`std::io::Write`] on HashEngine:
|
||||
//!
|
||||
//! ```rust
|
||||
//! use bitcoin_hashes::sha256;
|
||||
//! use bitcoin_hashes::Hash;
|
||||
//! use bitcoin_hashes::{sha256, Hash as _};
|
||||
//! use std::io::Write;
|
||||
//!
|
||||
//! #[cfg(std)]
|
||||
|
|
Loading…
Reference in New Issue