diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-31 10:15:35 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-31 15:49:11 -0700 |
| commit | 6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50 (patch) | |
| tree | bd5aad8208dbc01ab2834d2a1e0444444ce18959 /src/libstd/old_io/net/ip.rs | |
| parent | 5e0bda0448283c3045c1e96b99e90ebbc3746e12 (diff) | |
| parent | df65f59fe9dd856c96a383c01067a176fee0dbb6 (diff) | |
| download | rust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.tar.gz rust-6d2c640cf00aad6345bd93b0b64c8b3d3d2fcf50.zip | |
rollup merge of #23886: demelev/remove_as_slice_usage
Diffstat (limited to 'src/libstd/old_io/net/ip.rs')
| -rw-r--r-- | src/libstd/old_io/net/ip.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/old_io/net/ip.rs b/src/libstd/old_io/net/ip.rs index 26e1bb6550b..d405bde19cb 100644 --- a/src/libstd/old_io/net/ip.rs +++ b/src/libstd/old_io/net/ip.rs @@ -435,7 +435,7 @@ pub struct ParseError; /// let tcp_l = TcpListener::bind("localhost:12345"); /// /// let mut udp_s = UdpSocket::bind(("127.0.0.1", 23451)).unwrap(); -/// udp_s.send_to([7, 7, 7].as_slice(), (Ipv4Addr(127, 0, 0, 1), 23451)); +/// udp_s.send_to([7, 7, 7].as_ref(), (Ipv4Addr(127, 0, 0, 1), 23451)); /// } /// ``` pub trait ToSocketAddr { |
