From 36f1a19ac88f36c3d855245f36d272e940446e67 Mon Sep 17 00:00:00 2001 From: Christian Bourjau Date: Thu, 13 Dec 2018 20:14:38 +0100 Subject: [PATCH] Minor change in documentation of Decoder::decode (#797) `None` -> `Ok(None)` --- tokio-io/src/codec/decoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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