Minor change in documentation of Decoder::decode (#797)

`None` -> `Ok(None)`
This commit is contained in:
Christian Bourjau
2018-12-13 11:14:38 -08:00
committed by Carl Lerche
parent 6aa990ea75
commit 36f1a19ac8
+1 -1
View File
@@ -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