Merge pull request #489 from oli-obk/docs

fix an example in the README
This commit is contained in:
David Tolnay 2016-08-11 08:41:59 -07:00 committed by GitHub
commit 1f31bb2db9

View File

@ -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())
} }
} }