Skip to content

Commit 3b29913

Browse files
committed
add a note for Ipv4Addr::to_ipv6_compatible
1 parent b4acb11 commit 3b29913

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/net/ip.rs

+3
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,9 @@ impl Ipv4Addr {
745745
///
746746
/// a.b.c.d becomes ::a.b.c.d
747747
///
748+
/// This isn't typically the method you want; these addresses don't typically
749+
/// function on modern systems. Use `to_ipv6_mapped` instead.
750+
///
748751
/// [`IPv6` address]: Ipv6Addr
749752
///
750753
/// # Examples

0 commit comments

Comments
 (0)