Fixed tidy errors

This commit is contained in:
Vladimir Matveev 2014-10-31 11:09:09 +03:00
parent 7d379fa78f
commit 7af0cb8af7
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ fn from_rtio(ip: rtio::IpAddr) -> IpAddr {
} }
fn with_addresses_io<A: ToSocketAddr, T>( fn with_addresses_io<A: ToSocketAddr, T>(
addr: A, addr: A,
action: |&mut rtio::IoFactory, rtio::SocketAddr| -> Result<T, rtio::IoError> action: |&mut rtio::IoFactory, rtio::SocketAddr| -> Result<T, rtio::IoError>
) -> Result<T, IoError> { ) -> Result<T, IoError> {
const DEFAULT_ERROR: IoError = IoError { const DEFAULT_ERROR: IoError = IoError {

View File

@ -313,8 +313,8 @@ pub struct TcpListener {
} }
impl TcpListener { impl TcpListener {
/// Creates a new `TcpListener` which will be bound to the specified address. /// Creates a new `TcpListener` which will be bound to the specified address.
/// This listener is not ready for accepting connections, `listen` must be called /// This listener is not ready for accepting connections, `listen` must be called
/// on it before that's possible. /// on it before that's possible.
/// ///
/// Binding with a port number of 0 will request that the OS assigns a port /// Binding with a port number of 0 will request that the OS assigns a port