From 1f25d842738e1c826325c4516d726db835789fe5 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Fri, 14 May 2021 16:35:10 -0300 Subject: [PATCH] correct some docs (#2157) --- zebra-chain/src/sprout/tests/preallocate.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zebra-chain/src/sprout/tests/preallocate.rs b/zebra-chain/src/sprout/tests/preallocate.rs index 5302d100..2e92ead3 100644 --- a/zebra-chain/src/sprout/tests/preallocate.rs +++ b/zebra-chain/src/sprout/tests/preallocate.rs @@ -12,7 +12,7 @@ use proptest::{prelude::*, proptest}; use std::convert::TryInto; proptest! { - /// Confirm that each JoinSplit takes exactly BCTV14_JOINSPLIT_SIZE bytes when serialized. + /// Confirm that each JoinSplit takes exactly BCTV14_JOINSPLIT_SIZE bytes when serialized. /// This verifies that our calculated `TrustedPreallocate::max_allocation()` is indeed an upper bound. #[test] fn joinsplit_btcv14_size_is_correct(joinsplit in >::arbitrary_with(())) { @@ -48,7 +48,7 @@ proptest! { prop_assert!(((smallest_disallowed_vec.len() - 1) as u64) == >::max_allocation()); // Check that our smallest_disallowed_vec is too big to be included in a valid block // Note that a serialized block always includes at least one byte for the number of transactions, - // so any serialized Vec<>> at least MAX_BLOCK_BYTES long is too large to fit in a block. + // so any serialized Vec> at least MAX_BLOCK_BYTES long is too large to fit in a block. prop_assert!((smallest_disallowed_serialized.len() as u64) >= MAX_BLOCK_BYTES); // Create largest_allowed_vec by removing one element from smallest_disallowed_vec without copying (for efficiency) @@ -78,7 +78,7 @@ proptest! { prop_assert!(((smallest_disallowed_vec.len() - 1) as u64) == >::max_allocation()); // Check that our smallest_disallowed_vec is too big to be included in a valid block // Note that a serialized block always includes at least one byte for the number of transactions, - // so any serialized Vec<>> at least MAX_BLOCK_BYTES long is too large to fit in a block. + // so any serialized Vec> at least MAX_BLOCK_BYTES long is too large to fit in a block. prop_assert!((smallest_disallowed_serialized.len() as u64) >= MAX_BLOCK_BYTES); // Create largest_allowed_vec by removing one element from smallest_disallowed_vec without copying (for efficiency)