fix an example in the README (thanks @nox)

This commit is contained in:
Oliver Schneider 2016-08-11 13:57:43 +02:00
parent 8c2359f9c3
commit 6b5bd24edd
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46

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>
where D: serde::Deserializer,
{
deserializer.deserialize(BTreeMapVisitor::new())
deserializer.deserialize_map(BTreeMapVisitor::new())
}
}