Skip to content

Commit

Permalink
docs(serde): fixed Error::unsupported docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSherbinin committed Oct 25, 2024
1 parent 9d5cf35 commit 444e598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serde/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ macro_rules! declare_error_trait {
Error::custom(format_args!("duplicate field `{}`", field))
}

/// Raised when trying to serialize or deserialize type that not supported.
/// Raised when trying to deserialize type that not supported.
#[cold]
fn unsupported(ty: &'static str) -> Self {
Error::custom(format_args!("{} is not supported", ty))
Expand Down
2 changes: 1 addition & 1 deletion serde/src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ macro_rules! declare_error_trait {
where
T: Display;

/// Raised when trying to serialize or deserialize type that not supported.
/// Raised when trying to serialize type that not supported.
fn unsupported(ty: &'static str) -> Self {
Self::custom(format_args!("{} is not supported", ty))
}
Expand Down

0 comments on commit 444e598

Please sign in to comment.