From b50b702d1c3d719d2b07a8baea878d53c1d348e5 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Fri, 28 Aug 2015 11:27:03 -0400 Subject: [PATCH] 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). --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }