From d473b58cf44f46b7a17e5402d7b6ede499ccaa43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Coll?= Date: Sat, 6 Feb 2021 20:01:38 -0300 Subject: [PATCH] Fix assert in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ce1d1af..628c7fa7 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ fn main() -> Result<(), serde_yaml::Error> { // Serialize it to a YAML string. let s = serde_yaml::to_string(&map)?; - assert_eq!(s, "---\nx: 1.0\ny: 2.0"); + assert_eq!(s, "---\nx: 1.0\ny: 2.0\n"); // Deserialize it back to a Rust type. let deserialized_map: BTreeMap = serde_yaml::from_str(&s)?;