diff --git a/eth2/utils/tree_hash/README.md b/eth2/utils/tree_hash/README.md index 3c6e13a2e9..55b6cea376 100644 --- a/eth2/utils/tree_hash/README.md +++ b/eth2/utils/tree_hash/README.md @@ -17,7 +17,7 @@ fn main() { let foo = Foo { a: 42, b: vec![1, 2, 3] - } + }; println!("root: {}", foo.tree_hash_root()); } @@ -68,7 +68,7 @@ fn main() { let mut hasher = CachedTreeHasher::new(&bar).unwrap(); - hasher.update(&modified_bar); + hasher.update(&modified_bar).unwrap(); // Assert that the cached tree hash matches a standard tree hash. assert_eq!(hasher.tree_hash_root(), modified_bar.tree_hash_root());