Improved docs on from_message_io.

This commit is contained in:
Aaron Weiss 2015-02-24 01:21:41 -05:00
parent 05c0a9ccb5
commit 6fdea7302a

View file

@ -1150,7 +1150,7 @@ impl Command {
})
}
/// Converts an `IoResult<Message>` holding a Message into an `IoResult<Command>`
/// Converts a potential Message result into a potential Command result.
#[unstable = "This feature is still relatively new."]
pub fn from_message_io(m: IoResult<Message>) -> IoResult<Command> {
m.and_then(|msg| Command::from_message(&msg))