Skip to content

Commit

Permalink
Merge pull request #104 from dtolnay/dyn
Browse files Browse the repository at this point in the history
Fill in `dyn` in documentation
  • Loading branch information
dtolnay committed Mar 10, 2024
2 parents 31b0f96 + 631ff11 commit 45b65a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ pub trait DeserializeSeed<'de> {

/// An object-safe equivalent of Serde's `Deserializer` trait.
///
/// Any implementation of Serde's `Deserializer` can be converted to an
/// `&erased_serde::Deserializer` or `Box<erased_serde::Deserializer>` trait
/// object using `erased_serde::Deserializer::erase`.
/// Any implementation of Serde's `Deserializer` can be converted to a
/// `&dyn erased_serde::Deserializer` or `Box<dyn erased_serde::Deserializer>`
/// trait object using `erased_serde::Deserializer::erase`.
///
/// ```rust
/// use erased_serde::Deserializer;
Expand Down
11 changes: 6 additions & 5 deletions src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ use serde::ser::{

/// An object-safe equivalent of Serde's `Serialize` trait.
///
/// Any implementation of Serde's `Serialize` converts seamlessly to an
/// `&erased_serde::Serialize` or `Box<erased_serde::Serialize>` trait object.
/// Any implementation of Serde's `Serialize` converts seamlessly to a
/// `&dyn erased_serde::Serialize` or `Box<dyn erased_serde::Serialize>` trait
/// object.
///
/// ```rust
/// use erased_serde::{Serialize, Serializer};
Expand Down Expand Up @@ -61,9 +62,9 @@ pub trait Serialize: sealed::serialize::Sealed {

/// An object-safe equivalent of Serde's `Serializer` trait.
///
/// Any implementation of Serde's `Serializer` can be converted to an
/// `&erased_serde::Serializer` or `Box<erased_serde::Serializer>` trait object
/// using `erased_serde::Serializer::erase`.
/// Any implementation of Serde's `Serializer` can be converted to a
/// `&dyn erased_serde::Serializer` or `Box<dyn erased_serde::Serializer>` trait
/// object using `erased_serde::Serializer::erase`.
///
/// ```rust
/// use erased_serde::{Serialize, Serializer};
Expand Down

0 comments on commit 45b65a6

Please sign in to comment.