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

Commit

Permalink
Fix assert in README
Browse files Browse the repository at this point in the history
  • Loading branch information
colltoaction authored Feb 6, 2021
1 parent 02e9940 commit d473b58
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 @@ -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

0 comments on commit d473b58

Please sign in to comment.