File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,6 @@ impl UdpSocket {
185
185
/// # Examples
186
186
///
187
187
/// ```no_run
188
- /// #![feature(udp_peer_addr)]
189
188
/// use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4, UdpSocket};
190
189
///
191
190
/// let socket = UdpSocket::bind("127.0.0.1:34254").expect("couldn't bind to address");
@@ -199,14 +198,13 @@ impl UdpSocket {
199
198
/// [`NotConnected`]: ../../std/io/enum.ErrorKind.html#variant.NotConnected
200
199
///
201
200
/// ```no_run
202
- /// #![feature(udp_peer_addr)]
203
201
/// use std::net::UdpSocket;
204
202
///
205
203
/// let socket = UdpSocket::bind("127.0.0.1:34254").expect("couldn't bind to address");
206
204
/// assert_eq!(socket.peer_addr().unwrap_err().kind(),
207
205
/// ::std::io::ErrorKind::NotConnected);
208
206
/// ```
209
- #[ unstable ( feature = "udp_peer_addr" , issue = "59127 " ) ]
207
+ #[ stable ( feature = "udp_peer_addr" , since = "1.40.0 " ) ]
210
208
pub fn peer_addr ( & self ) -> io:: Result < SocketAddr > {
211
209
self . 0 . peer_addr ( )
212
210
}
You can’t perform that action at this time.
0 commit comments