should parse now

This commit is contained in:
Ty Overby 2016-02-07 17:00:24 -08:00
parent 13d9e30813
commit 7fba81da1e
2 changed files with 2 additions and 4 deletions

View File

@ -102,8 +102,7 @@ impl From<IoError> for DecodingError {
/// In most cases, prefer the `decode_from` function.
///
/// ```rust,no_run
/// let file = ...
/// let dr = bincode::rustc_serialize::DecoderReader::new(&mut file, SizeLimit::Infinite);
/// let dr = bincode::rustc_serialize::DecoderReader::new(&mut some_reader, SizeLimit::Infinite);
/// let result: T = Decodable::decode(&mut dr);
/// let bytes_red = dr.bytes_read();
/// ```

View File

@ -156,8 +156,7 @@ pub type DeserializeResult<T> = Result<T, DeserializeError>;
/// In most cases, prefer the `decode_from` function.
///
/// ```rust,no_run
/// let file = ...
/// let d = Deserializer::new(&mut file, SizeLimit::new());
/// let d = Deserializer::new(&mut some_reader, SizeLimit::new());
/// serde::Deserialize::deserialize(&mut deserializer);
/// let bytes_read = d.bytes_read();
/// ```