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

Fix assert in README #191

Merged
merged 1 commit into from Feb 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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<String, f64> = serde_yaml::from_str(&s)?;
Expand Down