should parse now
This commit is contained in:
parent
13d9e30813
commit
7fba81da1e
|
|
@ -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();
|
||||
/// ```
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Reference in New Issue