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

Commit

Permalink
Fix README example
Browse files Browse the repository at this point in the history
  • Loading branch information
Masanori Tani committed Mar 6, 2022
1 parent a14e026 commit 45affad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
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 45affad

Please sign in to comment.