Skip to content

Commit

Permalink
add a note for Ipv4Addr::to_ipv6_compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
nanpuyue committed Sep 2, 2020
1 parent b4acb11 commit 3b29913
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/net/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,9 @@ impl Ipv4Addr {
///
/// a.b.c.d becomes ::a.b.c.d
///
/// This isn't typically the method you want; these addresses don't typically
/// function on modern systems. Use `to_ipv6_mapped` instead.
///
/// [`IPv6` address]: Ipv6Addr
///
/// # Examples
Expand Down

0 comments on commit 3b29913

Please sign in to comment.