summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorNadrieril2020-03-21 21:42:54 +0000
committerNadrieril2020-03-31 21:44:01 +0100
commitb0ee39b006ad2ca99bd3dddf06ab0e0dcc966d2f (patch)
treeb40f5c3c22ed578d4477b246552230c0e820b57a /README.md
parent85e2e8ee5e83dadd05b6974ba6c951350cb97a61 (diff)
Test README code samples using doc_comment
Diffstat (limited to '')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index cce65e3..8afcac6 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ use std::collections::BTreeMap;
let data = "{ x = 1, y = 1 + 1 } : { x: Natural, y: Natural }";
// Deserialize it to a Rust type.
-let deserialized_map: BTreeMap<String, usize> = serde_dhall::from_str(data)?;
+let deserialized_map: BTreeMap<String, usize> = serde_dhall::from_str(data).unwrap();
let mut expected_map = BTreeMap::new();
expected_map.insert("x".to_string(), 1);