From 499f97046d36091da4f0459affb639457a4a9193 Mon Sep 17 00:00:00 2001 From: Bobbin Threadbare Date: Thu, 21 Dec 2023 00:17:41 -0800 Subject: [PATCH] fix: typos --- src/hash/rescue/rpo/mod.rs | 2 +- src/hash/rescue/rpx/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hash/rescue/rpo/mod.rs b/src/hash/rescue/rpo/mod.rs index c28f87d1..120ea0e2 100644 --- a/src/hash/rescue/rpo/mod.rs +++ b/src/hash/rescue/rpo/mod.rs @@ -117,7 +117,7 @@ impl Hasher for Rpo256 { // if we absorbed some elements but didn't apply a permutation to them (would happen when // the number of elements is not a multiple of RATE_WIDTH), apply the RPO permutation. we - // don't need to apply any extra padding because the first capacity element containts a + // don't need to apply any extra padding because the first capacity element contains a // flag indicating whether the input is evenly divisible by the rate. if i != 0 { state[RATE_RANGE.start + i..RATE_RANGE.end].fill(ZERO); diff --git a/src/hash/rescue/rpx/mod.rs b/src/hash/rescue/rpx/mod.rs index 541310e0..89429dff 100644 --- a/src/hash/rescue/rpx/mod.rs +++ b/src/hash/rescue/rpx/mod.rs @@ -132,7 +132,7 @@ impl Hasher for Rpx256 { // if we absorbed some elements but didn't apply a permutation to them (would happen when // the number of elements is not a multiple of RATE_WIDTH), apply the RPX permutation. we - // don't need to apply any extra padding because the first capacity element containts a + // don't need to apply any extra padding because the first capacity element contains a // flag indicating whether the input is evenly divisible by the rate. if i != 0 { state[RATE_RANGE.start + i..RATE_RANGE.end].fill(ZERO);