Fix doc tests for hex module

This commit is contained in:
Pantonshire committed 2022-08-24 14:14:04 +01:00
1 parent cf2648dde6
commit 0e03fa87ba
1 file changed
+2 -2
+2 -2
View File
@@ -118,7 +118,7 @@ mod sealed {
/// encodes the most significant 4 bits, and the second byte encodes the least significant 4 bits. /// encodes the most significant 4 bits, and the second byte encodes the least significant 4 bits.
/// ///
/// ``` /// ```
/// # use libshire::hex::byte_to_hex_lower; /// # use libshire::encoding::hex::byte_to_hex_lower;
/// assert_eq!(byte_to_hex_lower(15), (b'0', b'f')); /// assert_eq!(byte_to_hex_lower(15), (b'0', b'f'));
/// assert_eq!(byte_to_hex_lower(139), (b'8', b'b')); /// assert_eq!(byte_to_hex_lower(139), (b'8', b'b'));
/// ``` /// ```
@@ -145,7 +145,7 @@ fn nybble_to_hex_lower(nybble: u8) -> u8 {
/// encodes the most significant 4 bits, and the second byte encodes the least significant 4 bits. /// encodes the most significant 4 bits, and the second byte encodes the least significant 4 bits.
/// ///
/// ``` /// ```
/// # use libshire::hex::byte_to_hex_upper; /// # use libshire::encoding::hex::byte_to_hex_upper;
/// assert_eq!(byte_to_hex_upper(15), (b'0', b'F')); /// assert_eq!(byte_to_hex_upper(15), (b'0', b'F'));
/// assert_eq!(byte_to_hex_upper(139), (b'8', b'B')); /// assert_eq!(byte_to_hex_upper(139), (b'8', b'B'));
/// ``` /// ```