From 45affad0cef7061ac57bc751acc2814bd8fab15d Mon Sep 17 00:00:00 2001 From: Masanori Tani Date: Sun, 6 Mar 2022 23:14:37 +0000 Subject: [PATCH] Fix README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 978827c3..fb4824a4 100644 --- a/README.md +++ b/README.md @@ -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);