Skip to content

Commit

Permalink
Fixed not compiling code in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
netvl committed Nov 5, 2014
1 parent d1ec703 commit 0f610f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/io/net/ip.rs
Expand Up @@ -399,7 +399,7 @@ impl FromStr for SocketAddr {
///
/// use std::io::{TcpStream, TcpListener};
/// use std::io::net::udp::UdpSocket;
/// use std::io::net::ip::{ToSocketAddr, Ipv4Addr, SocketAddr};
/// use std::io::net::ip::{Ipv4Addr, SocketAddr};
///
/// fn main() {
/// // The following lines are equivalent modulo possible "localhost" name resolution
Expand All @@ -414,7 +414,7 @@ impl FromStr for SocketAddr {
/// // TcpListener::bind(), UdpSocket::bind() and UdpSocket::send_to() behave similarly
/// let tcp_l = TcpListener::bind("localhost:12345");
///
/// let udp_s = UdpSocket::bind(("127.0.0.1", 23451u16));
/// let mut udp_s = UdpSocket::bind(("127.0.0.1", 23451u16)).unwrap();
/// udp_s.send_to([7u8, 7u8, 7u8].as_slice(), (Ipv4Addr(127, 0, 0, 1), 23451u16));
/// }
/// ```
Expand Down

5 comments on commit 0f610f3

@bors
Copy link
Contributor

@bors bors commented on 0f610f3 Nov 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at netvl@0f610f3

@bors
Copy link
Contributor

@bors bors commented on 0f610f3 Nov 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging netvl/rust/to-socket-addr = 0f610f3 into auto

@bors
Copy link
Contributor

@bors bors commented on 0f610f3 Nov 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

netvl/rust/to-socket-addr = 0f610f3 merged ok, testing candidate = 5c1fd5f

@bors
Copy link
Contributor

@bors bors commented on 0f610f3 Nov 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 0f610f3 Nov 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 5c1fd5f

Please sign in to comment.