Skip to content

Commit

Permalink
Merge pull request 2284 from benediktwerner/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 23, 2022
2 parents 8c036ee + b267634 commit 649a72a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions serde/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,10 +862,10 @@ where
/// The `Deserializer` trait supports two entry point styles which enables
/// different kinds of deserialization.
///
/// 1. The `deserialize` method. Self-describing data formats like JSON are able
/// to look at the serialized data and tell what it represents. For example
/// the JSON deserializer may see an opening curly brace (`{`) and know that
/// it is seeing a map. If the data format supports
/// 1. The `deserialize_any` method. Self-describing data formats like JSON are
/// able to look at the serialized data and tell what it represents. For
/// example the JSON deserializer may see an opening curly brace (`{`) and
/// know that it is seeing a map. If the data format supports
/// `Deserializer::deserialize_any`, it will drive the Visitor using whatever
/// type it sees in the input. JSON uses this approach when deserializing
/// `serde_json::Value` which is an enum that can represent any JSON
Expand Down

0 comments on commit 649a72a

Please sign in to comment.