Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 2d4a89e

Browse files
committed
Improve module level docs
Improve module level docs (inner docs) by doing: - Remove markdown - Use full sentence - Uniformly use trailing `!//` (blank line)
1 parent 7abde5b commit 2d4a89e

File tree

14 files changed

+25
-14
lines changed

14 files changed

+25
-14
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
//
1414

15-
//! # Error Type
15+
//! Crate error type.
1616
//!
1717
1818
use core::fmt;

src/hash160.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
// was written entirely by Andrew Poelstra, who is re-licensing its
1818
// contents here as CC0.
1919

20-
//! # HASH160 (SHA256 then RIPEMD160)
20+
//! HASH160 (SHA256 then RIPEMD160) implementation.
21+
//!
2122
2223
use core::str;
2324
use core::ops::Index;

src/hex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
//
1414

15-
//! # Hex encoding and decoding
15+
//! Hex encoding and decoding.
1616
//!
1717
1818
#[cfg(any(feature = "std", feature = "alloc"))]

src/hmac.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
// was written entirely by Andrew Poelstra, who is re-licensing its
1818
// contents here as CC0.
1919

20-
//! # HMAC support
20+
//! Hash-based Message Authentication Code (HMAC).
21+
//!
2122
2223
use core::{borrow, fmt, ops, str};
2324
#[cfg(feature = "serde")]

src/impls.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
//! `std` / `core2` Impls
1616
//!
17-
//! impls of traits defined in `std` / `core2` and not in `core`
17+
//! Implementations of traits defined in `std` / `core2` and not in `core`.
18+
//!
1819
1920
#[cfg(feature = "std")]
2021
use std::{error, io};

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
//
1414

15-
//! # Rust Hashes Library
15+
//! Rust hashes library.
1616
//!
1717
//! This is a simple, no-dependency library which implements the hash functions
1818
//! needed by Bitcoin. These are SHA256, SHA256d, and RIPEMD160. As an ancillary

src/ripemd160.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
// was written entirely by Andrew Poelstra, who is re-licensing its
1818
// contents here as CC0.
1919

20-
//! # RIPEMD160
20+
//! RIPEMD160 implementation.
21+
//!
2122
2223
use core::{cmp, str};
2324
use core::ops::Index;

src/serde_macros.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
//
1414

15-
//! Macros for serde trait impls, and supporting code
15+
//! Macros for serde trait implementations, and supporting code.
16+
//!
1617
1718
#[cfg(feature = "serde")]
1819
/// Functions used by serde impls of all hashes

src/sha1.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
//
1414

15-
//! # SHA1
15+
//! SHA1 implementation.
16+
//!
1617
1718
use core::{cmp, str};
1819
use core::ops::Index;

src/sha256.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
1313
//
1414

15-
//! # SHA256
15+
//! SHA256 implementation.
16+
//!
1617
1718
use core::{cmp, str};
1819
use core::ops::Index;

0 commit comments

Comments
 (0)