diff --git a/changelist.org b/changelist.org index c8de317..391cae9 100644 --- a/changelist.org +++ b/changelist.org @@ -5,7 +5,7 @@ big user-friendliness issues. Major congratulations to Serde for coming this far! ** Moved Refbox, Strbox and Slicebox into a "refbox" module - Refbox, Strbox and Slicebox are still an integral piece of bincode, but since + Refbox, Strbox and Slicebox are still an integral piece of Bincode, but since they are mainly used by power-users, this move will make the crate API more organized and easier for new users to understand. diff --git a/src/de/mod.rs b/src/de/mod.rs index 6724fc1..1f1427b 100644 --- a/src/de/mod.rs +++ b/src/de/mod.rs @@ -370,7 +370,7 @@ where where V: serde::de::Visitor<'de>, { - let message = "bincode does not support Deserializer::deserialize_identifier"; + let message = "Bincode does not support Deserializer::deserialize_identifier"; Err(Error::custom(message)) } @@ -404,7 +404,7 @@ where where V: serde::de::Visitor<'de>, { - let message = "bincode does not support Deserializer::deserialize_ignored_any"; + let message = "Bincode does not support Deserializer::deserialize_ignored_any"; Err(Error::custom(message)) } } diff --git a/src/internal.rs b/src/internal.rs index 4a950ca..396bb5e 100644 --- a/src/internal.rs +++ b/src/internal.rs @@ -60,9 +60,9 @@ impl StdError for ErrorKind { ErrorKind::InvalidCharEncoding => "char is not valid", ErrorKind::InvalidTagEncoding(_) => "tag for enum is not valid", ErrorKind::SequenceMustHaveLength => - "bincode can only encode sequences and maps that have a knowable size ahead of time", + "Bincode can only encode sequences and maps that have a knowable size ahead of time", ErrorKind::DeserializeAnyNotSupported => { - "bincode doesn't support serde::Deserializer::deserialize_any" + "Bincode doesn't support serde::Deserializer::deserialize_any" } ErrorKind::SizeLimit => "the size limit has been reached", ErrorKind::Custom(ref msg) => msg, @@ -110,7 +110,7 @@ impl fmt::Display for ErrorKind { ErrorKind::DeserializeAnyNotSupported => { write!( fmt, - "bincode does not support the serde::Deserializer::deserialize_any method" + "Bincode does not support the serde::Deserializer::deserialize_any method" ) } ErrorKind::Custom(ref s) => s.fmt(fmt), @@ -202,7 +202,7 @@ impl SizeLimit for CountSize { } } -/// Returns the size that an object would be if serialized using bincode. +/// Returns the size that an object would be if serialized using Bincode. /// /// This is used internally as part of the check for encode_into, but it can /// be useful for preallocating buffers if thats your style. diff --git a/src/lib.rs b/src/lib.rs index f5b9d79..ae1e1ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ #![deny(missing_docs)] -//! `bincode` is a crate for encoding and decoding using a tiny binary +//! Bincode is a crate for encoding and decoding using a tiny binary //! serialization strategy. //! //! There are simple functions for encoding to `Vec` and decoding from @@ -10,7 +10,7 @@ //! //! ## Modules //! Until "default type parameters" lands, we have an extra module called `endian_choice` -//! that duplicates all of the core bincode functionality but with the option to choose +//! that duplicates all of the core Bincode functionality but with the option to choose //! which endianness the integers are encoded using. //! //! The default endianness is little.