commit 38b4cec691ecaae989da0280e7c89f856f906acd
parent 8cf001a76af06a43f7ead889952694429d720956
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date: Mon, 5 Apr 2021 03:22:14 +0200
crypto::math: fix typo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/math/bits.ha b/crypto/math/bits.ha
@@ -22,7 +22,7 @@ export fn rotr32(x: u32, k: int) u32 = rotl32(x, -k);
};
// Rotates a 64-bit unsigned integer left by k bits. k may be negative to rotate
-// rigt instead, or see [rotr64].
+// right instead, or see [rotr64].
export fn rotl64(x: u64, k: int) u64 = {
const n = 64u64;
const s = k: u64 & (n - 1);