mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-21 08:31:04 +00:00
Auto merge of #462 - jimmycuadra:ser-error-docstring, r=oli-obk
Fix typos in docstring of ser::Error. Just a minor documentation fix for grammar and and a copy/paste error.
This commit is contained in:
@@ -25,11 +25,11 @@ pub mod impls;
|
|||||||
/// `Error` is a trait that allows a `Serialize` to generically create a
|
/// `Error` is a trait that allows a `Serialize` to generically create a
|
||||||
/// `Serializer` error.
|
/// `Serializer` error.
|
||||||
pub trait Error: Sized + error::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"))]
|
#[cfg(any(feature = "std", feature = "collections"))]
|
||||||
fn custom<T: Into<String>>(msg: T) -> Self;
|
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")))]
|
#[cfg(all(not(feature = "std"), not(feature = "collections")))]
|
||||||
fn custom<T: Into<&'static str>>(msg: T) -> Self;
|
fn custom<T: Into<&'static str>>(msg: T) -> Self;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user