From 7af0cb8af79ea6abd683c61d77e41b14a1242d23 Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Fri, 31 Oct 2014 11:09:09 +0300 Subject: [PATCH] Fixed tidy errors --- src/libstd/io/net/mod.rs | 2 +- src/libstd/io/net/tcp.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libstd/io/net/mod.rs b/src/libstd/io/net/mod.rs index 61cefa6f208..b9b50a55a10 100644 --- a/src/libstd/io/net/mod.rs +++ b/src/libstd/io/net/mod.rs @@ -43,7 +43,7 @@ fn from_rtio(ip: rtio::IpAddr) -> IpAddr { } fn with_addresses_io( - addr: A, + addr: A, action: |&mut rtio::IoFactory, rtio::SocketAddr| -> Result ) -> Result { const DEFAULT_ERROR: IoError = IoError { diff --git a/src/libstd/io/net/tcp.rs b/src/libstd/io/net/tcp.rs index 6464a180b68..6fb31d52dab 100644 --- a/src/libstd/io/net/tcp.rs +++ b/src/libstd/io/net/tcp.rs @@ -313,8 +313,8 @@ pub struct TcpListener { } impl TcpListener { - /// Creates a new `TcpListener` which will be bound to the specified address. - /// This listener is not ready for accepting connections, `listen` must be called + /// Creates a new `TcpListener` which will be bound to the specified address. + /// This listener is not ready for accepting connections, `listen` must be called /// on it before that's possible. /// /// Binding with a port number of 0 will request that the OS assigns a port