mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-09 05:57:56 +00:00
fix an example in the README (thanks @nox)
This commit is contained in:
@@ -483,7 +483,7 @@ impl<K, V> serde::Deserialize for BTreeMap<K, V>
|
|||||||
fn deserialize<D>(deserializer: &mut D) -> Result<BTreeMap<K, V>, D::Error>
|
fn deserialize<D>(deserializer: &mut D) -> Result<BTreeMap<K, V>, D::Error>
|
||||||
where D: serde::Deserializer,
|
where D: serde::Deserializer,
|
||||||
{
|
{
|
||||||
deserializer.deserialize(BTreeMapVisitor::new())
|
deserializer.deserialize_map(BTreeMapVisitor::new())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user