diff options
author | Nadrieril | 2020-03-21 21:42:54 +0000 |
---|---|---|
committer | Nadrieril | 2020-03-31 21:44:01 +0100 |
commit | b0ee39b006ad2ca99bd3dddf06ab0e0dcc966d2f (patch) | |
tree | b40f5c3c22ed578d4477b246552230c0e820b57a /README.md | |
parent | 85e2e8ee5e83dadd05b6974ba6c951350cb97a61 (diff) |
Test README code samples using doc_comment
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |