change wording of some docs

This commit is contained in:
TyOverby 2015-04-07 13:35:11 -07:00
parent fb0751ac2e
commit be66f5fed4
1 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,6 @@ extern crate rustc_serialize;
extern crate byteorder;
extern crate unicode;
//use std::old_io::{Buffer, MemWriter};
use rustc_serialize::{Encodable, Decodable};
pub use refbox::RefBox;
@ -48,9 +47,8 @@ mod refbox;
///! assert_eq!(target, decoded);
///! }
///! ```
///!
/// A limit on the size of bytes to be read or written.
/// A limit on the amount of bytes that can be read or written.
///
/// Size limits are an incredibly important part of both encoding and decoding.
///
@ -67,7 +65,7 @@ mod refbox;
/// that is larger than your decoder expects. By supplying a size limit to an
/// encoding function, the encoder will verify that the structure can be encoded
/// within that limit. This verification occurs before any bytes are written to
/// the Writer, so recovering from an the error is possible.
/// the Writer, so recovering from an the error is easy.
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq, Ord, PartialOrd)]
pub enum SizeLimit {
Infinite,