readme: fix example code so it builds

Might be worthwhile to look at trying to automate testing the code in
the README (perhaps by generating the README from some special tests).
This commit is contained in:
Cody P Schafer 2015-08-28 11:27:03 -04:00
parent 5711e3d860
commit b50b702d1c

View File

@ -61,7 +61,7 @@ fn main() {
println!("{}", serialized); println!("{}", serialized);
let deserialized: Point = serde_json::from_str(&serialized_point).unwrap(); let deserialized: Point = serde_json::from_str(&serialized).unwrap();
println!("{:?}", deserialized); println!("{:?}", deserialized);
} }
@ -119,7 +119,7 @@ fn main() {
println!("{}", serialized); println!("{}", serialized);
let deserialized: Point = serde_json::from_str(&serialized_point).unwrap(); let deserialized: Point = serde_json::from_str(&serialized).unwrap();
println!("{:?}", deserialized); println!("{:?}", deserialized);
} }