add a note for Ipv4Addr::to_ipv6_compatible

This commit is contained in:
南浦月 2020-09-02 21:08:09 +08:00
parent b4acb11033
commit 3b29913295

View File

@ -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