Skip to content

Commit

Permalink
Fix misprint in the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Oct 11, 2020
1 parent 2b50409 commit e6d2322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde/src/de/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ where
let value = self.value.take();
// Panic because this indicates a bug in the program rather than an
// 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())
}

Expand Down

0 comments on commit e6d2322

Please sign in to comment.