Merge pull request #392 from bouk/fix-truefalse

Fix falsey typo
This commit is contained in:
David Tolnay 2017-12-07 09:43:33 -08:00 committed by GitHub
commit 539cc441cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ impl<'de, R: Read<'de>> Deserializer<R> {
if let Err(err) = self.parse_ident(b"alse") {
return err;
}
de::Error::invalid_type(Unexpected::Bool(true), exp)
de::Error::invalid_type(Unexpected::Bool(false), exp)
}
b'-' => {
self.eat_char();