@@ -593,7 +593,7 @@ impl UdpSocket {
593
593
/// #![feature(ipv6_hop_limit)]
594
594
/// use std::net::UdpSocket;
595
595
///
596
- /// let socket = UdpSocket::bind("127.0.0.1:54321 ").expect("couldn't bind to address");
596
+ /// let socket = UdpSocket::bind("[::1]:12345 ").expect("couldn't bind to address");
597
597
/// socket.set_hop_limit_v6(88).expect("set_hop_limit_v6 call failed");
598
598
/// ```
599
599
#[ unstable( feature = "ipv6_hop_limit" , issue = "47727" ) ]
@@ -611,7 +611,7 @@ impl UdpSocket {
611
611
/// #![feature(ipv6_hop_limit)]
612
612
/// use std::net::UdpSocket;
613
613
///
614
- /// let socket = UdpSocket::bind("127.0.0.1:54321 ").expect("couldn't bind to address");
614
+ /// let socket = UdpSocket::bind("[::1]:12345 ").expect("couldn't bind to address");
615
615
/// socket.set_hop_limit_v6(88).expect("set_hop_limit_v6 call failed");
616
616
/// assert_eq!(socket.hop_limit_v6().unwrap(), 88);
617
617
/// ```
@@ -631,7 +631,7 @@ impl UdpSocket {
631
631
/// #![feature(ipv6_hop_limit)]
632
632
/// use std::net::UdpSocket;
633
633
///
634
- /// let socket = UdpSocket::bind("127.0.0.1:54321 ").expect("couldn't bind to address");
634
+ /// let socket = UdpSocket::bind("[::1]:12345 ").expect("couldn't bind to address");
635
635
/// socket.set_multicast_hop_limit_v6(88).expect("set_multicast_hop_limit_v6 call failed");
636
636
/// ```
637
637
#[ unstable( feature = "ipv6_hop_limit" , issue = "47727" ) ]
@@ -649,7 +649,7 @@ impl UdpSocket {
649
649
/// #![feature(ipv6_hop_limit)]
650
650
/// use std::net::UdpSocket;
651
651
///
652
- /// let socket = UdpSocket::bind("127.0.0.1:54321 ").expect("couldn't bind to address");
652
+ /// let socket = UdpSocket::bind("[::1]:12345 ").expect("couldn't bind to address");
653
653
/// socket.set_multicast_hop_limit_v6(88).expect("set_multicast_hop_limit_v6 call failed");
654
654
/// assert_eq!(socket.multicast_hop_limit_v6().unwrap(), 88);
655
655
/// ```
0 commit comments