@@ -593,7 +593,7 @@ impl UdpSocket {
593593 /// #![feature(ipv6_hop_limit)]
594594 /// use std::net::UdpSocket;
595595 ///
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");
597597 /// socket.set_hop_limit_v6(88).expect("set_hop_limit_v6 call failed");
598598 /// ```
599599 #[ unstable( feature = "ipv6_hop_limit" , issue = "47727" ) ]
@@ -611,7 +611,7 @@ impl UdpSocket {
611611 /// #![feature(ipv6_hop_limit)]
612612 /// use std::net::UdpSocket;
613613 ///
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");
615615 /// socket.set_hop_limit_v6(88).expect("set_hop_limit_v6 call failed");
616616 /// assert_eq!(socket.hop_limit_v6().unwrap(), 88);
617617 /// ```
@@ -631,7 +631,7 @@ impl UdpSocket {
631631 /// #![feature(ipv6_hop_limit)]
632632 /// use std::net::UdpSocket;
633633 ///
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");
635635 /// socket.set_multicast_hop_limit_v6(88).expect("set_multicast_hop_limit_v6 call failed");
636636 /// ```
637637 #[ unstable( feature = "ipv6_hop_limit" , issue = "47727" ) ]
@@ -649,7 +649,7 @@ impl UdpSocket {
649649 /// #![feature(ipv6_hop_limit)]
650650 /// use std::net::UdpSocket;
651651 ///
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");
653653 /// socket.set_multicast_hop_limit_v6(88).expect("set_multicast_hop_limit_v6 call failed");
654654 /// assert_eq!(socket.multicast_hop_limit_v6().unwrap(), 88);
655655 /// ```
0 commit comments