From da9e5b6273523ef60663f7417401e5b2baf1c27e Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Tue, 24 Oct 2023 12:38:31 -0600 Subject: [PATCH] Apply suggestions from code review --- zcash_primitives/src/transaction/components/amount.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zcash_primitives/src/transaction/components/amount.rs b/zcash_primitives/src/transaction/components/amount.rs index 8c4d6fc641..49b9ed187a 100644 --- a/zcash_primitives/src/transaction/components/amount.rs +++ b/zcash_primitives/src/transaction/components/amount.rs @@ -282,7 +282,7 @@ impl NonNegativeAmount { Self::from_u64(amount) } - /// Reads a NonNegativeAmount from a signed 64-bit little-endian integer. + /// Reads a NonNegativeAmount from a signed 63-bit integer represented as a 64-bit little-endian value. /// /// Returns an error if the amount is outside the range `{0..MAX_MONEY}`. pub fn from_nonnegative_i64_le_bytes(bytes: [u8; 8]) -> Result { @@ -290,7 +290,7 @@ impl NonNegativeAmount { Self::from_nonnegative_i64(amount) } - /// Returns this NonNegativeAmount encoded as a signed 64-bit little-endian integer. + /// Returns this NonNegativeAmount encoded as 64 bits in little-endian order. pub fn to_i64_le_bytes(self) -> [u8; 8] { self.0.to_i64_le_bytes() }