Skip to content

Commit

Permalink
fix a typo in the example code in the doc comments of Ipv6Addr::to_bi…
Browse files Browse the repository at this point in the history
…ts()
  • Loading branch information
hltj committed Dec 20, 2024
1 parent e7bd951 commit d6f18d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/net/ip_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ impl Ipv6Addr {
/// 0x1020, 0x3040, 0x5060, 0x7080,
/// 0x90A0, 0xB0C0, 0xD0E0, 0xF00D,
/// );
/// assert_eq!(0x102030405060708090A0B0C0D0E0F00D_u128, u128::from(addr));
/// assert_eq!(0x102030405060708090A0B0C0D0E0F00D_u128, addr.to_bits());
/// ```
///
/// ```
Expand Down

0 comments on commit d6f18d5

Please sign in to comment.