From 556d5bdc277ec702549d2c2254758c745e9c6117 Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Sat, 23 Jul 2016 00:56:55 -0700 Subject: [PATCH] Fix typos in docstring of ser::Error. --- serde/src/ser/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serde/src/ser/mod.rs b/serde/src/ser/mod.rs index 0906c7db..7ae23669 100644 --- a/serde/src/ser/mod.rs +++ b/serde/src/ser/mod.rs @@ -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>(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>(msg: T) -> Self;