hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 69d99359009090e5b59fcf046839434502144abb
parent 9ab7a86aee1b253eb09e7a7431473cd3cd983d58
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 17 Oct 2023 21:08:57 -0400

crypto: clarify doc comment

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mcrypto/authenc.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/authenc.ha b/crypto/authenc.ha @@ -125,8 +125,8 @@ export fn decrypt( }; // Compares two slices and returns true if they are equal. Comparison is done -// in constant time, meaning that the time it takes depends only on the size of -// the slices and not the content. +// in constant time, meaning that, if the slices have equal length, the time it +// takes depends only on the length of the slices and not the content. export fn compare(a: []u8, b: []u8) bool = { if (len(a) != len(b)) { return false;