diff --git a/README.md b/README.md index ff5dc575..80c1e1c5 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ fn main() { println!("{}", serialized); - let deserialized: Point = serde_json::from_str(&serialized_point).unwrap(); + let deserialized: Point = serde_json::from_str(&serialized).unwrap(); println!("{:?}", deserialized); } @@ -119,7 +119,7 @@ fn main() { println!("{}", serialized); - let deserialized: Point = serde_json::from_str(&serialized_point).unwrap(); + let deserialized: Point = serde_json::from_str(&serialized).unwrap(); println!("{:?}", deserialized); }