diff --git a/src/libcore/pipes.rs b/src/libcore/pipes.rs index 48b0b8d4d2b..c298213fb7c 100644 --- a/src/libcore/pipes.rs +++ b/src/libcore/pipes.rs @@ -416,7 +416,7 @@ pub fn recv(p: RecvPacketBuffered) -> T { /** Attempts to receive a message from a pipe. -Returns `none` if the sender has closed the connection without sending +Returns `None` if the sender has closed the connection without sending a message, or `Some(T)` if a message was received. */ @@ -1149,7 +1149,7 @@ pub fn SharedChan(c: Chan) -> SharedChan { /// Receive a message from one of two endpoints. pub trait Select2 { - /// Receive a message or return `none` if a connection closes. + /// Receive a message or return `None` if a connection closes. fn try_select() -> Either, Option>; /// Receive a message or fail if a connection closes. fn select() -> Either;