Merge pull request #1906 from Mingun/fix-misprint

Fix misprint in the error message
This commit is contained in:
David Tolnay 2020-10-11 12:13:03 -07:00 committed by GitHub
commit 4bec9ffd0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1034,7 +1034,7 @@ where
let value = self.value.take(); let value = self.value.take();
// Panic because this indicates a bug in the program rather than an // Panic because this indicates a bug in the program rather than an
// expected failure. // expected failure.
let value = value.expect("MapAccess::visit_value called before visit_key"); let value = value.expect("MapAccess::next_value called before next_key");
seed.deserialize(value.into_deserializer()) seed.deserialize(value.into_deserializer())
} }