Skip to content

Commit d6f18d5

Browse files
committed
fix a typo in the example code in the doc comments of Ipv6Addr::to_bits()
1 parent e7bd951 commit d6f18d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/net/ip_addr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ impl Ipv6Addr {
12941294
/// 0x1020, 0x3040, 0x5060, 0x7080,
12951295
/// 0x90A0, 0xB0C0, 0xD0E0, 0xF00D,
12961296
/// );
1297-
/// assert_eq!(0x102030405060708090A0B0C0D0E0F00D_u128, u128::from(addr));
1297+
/// assert_eq!(0x102030405060708090A0B0C0D0E0F00D_u128, addr.to_bits());
12981298
/// ```
12991299
///
13001300
/// ```

0 commit comments

Comments
 (0)