Skip to content

Commit

Permalink
Fix rustdoc title on hex_u128_*
Browse files Browse the repository at this point in the history
The `hex_u32` versions of these functions have better docs, copy them to
the `hex_u128` versions.
  • Loading branch information
tcharding committed Jan 20, 2025
1 parent f1e2564 commit 7ca5c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions units/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ pub fn hex_u128(s: &str) -> Result<u128, ParseIntError> {
Ok(hex_u128_unchecked(unchecked)?)
}

/// Parses a `u128` from a hex string.
/// Parses a `u128` from a prefixed hex string.
///
/// # Errors
///
Expand All @@ -346,7 +346,7 @@ pub fn hex_u128_prefixed(s: &str) -> Result<u128, PrefixedHexError> {
Ok(hex_u128_unchecked(checked)?)
}

/// Parses a `u128` from a hex string.
/// Parses a `u128` from an unprefixed hex string.
///
/// # Errors
///
Expand Down

0 comments on commit 7ca5c5c

Please sign in to comment.