Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #239 from uta8a/fix-readme-example
Browse files Browse the repository at this point in the history
Fix README example
  • Loading branch information
dtolnay committed Mar 8, 2022
2 parents a14e026 + 45affad commit 8155852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -78,7 +78,7 @@ fn main() -> Result<(), serde_yaml::Error> {
let point = Point { x: 1.0, y: 2.0 };

let s = serde_yaml::to_string(&point)?;
assert_eq!(s, "---\nx: 1.0\ny: 2.0");
assert_eq!(s, "---\nx: 1.0\ny: 2.0\n");

let deserialized_point: Point = serde_yaml::from_str(&s)?;
assert_eq!(point, deserialized_point);
Expand Down

0 comments on commit 8155852

Please sign in to comment.