mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
Minor change in documentation of Decoder::decode (#797)
`None` -> `Ok(None)`
This commit is contained in:
committed by
Carl Lerche
parent
6aa990ea75
commit
36f1a19ac8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user