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