Fix typos in docstring of ser::Error.

This commit is contained in:
Jimmy Cuadra 2016-07-23 00:56:55 -07:00
parent c6acec29e5
commit 556d5bdc27

View File

@ -25,11 +25,11 @@ pub mod impls;
/// `Error` is a trait that allows a `Serialize` to generically create a
/// `Serializer` error.
pub trait Error: Sized + error::Error {
/// Raised when there is general error when deserializing a type.
/// Raised when there is a general error when serializing a type.
#[cfg(any(feature = "std", feature = "collections"))]
fn custom<T: Into<String>>(msg: T) -> Self;
/// Raised when there is general error when deserializing a type.
/// Raised when there is a general error when serializing a type.
#[cfg(all(not(feature = "std"), not(feature = "collections")))]
fn custom<T: Into<&'static str>>(msg: T) -> Self;