diff --git a/tokio-io/src/codec/decoder.rs b/tokio-io/src/codec/decoder.rs index 9797fb0d0..eb129a8e9 100644 --- a/tokio-io/src/codec/decoder.rs +++ b/tokio-io/src/codec/decoder.rs @@ -57,7 +57,7 @@ pub trait Decoder { /// /// Note that the bytes provided may be empty. If a previous call to /// `decode` consumed all the bytes in the buffer then `decode` will be - /// called again until it returns `None`, indicating that more bytes need to + /// called again until it returns `Ok(None)`, indicating that more bytes need to /// be read. /// /// Finally, if the bytes in the buffer are malformed then an error is