From 0315c8a5387a26fdb54ad5809927a47f24d54c0b Mon Sep 17 00:00:00 2001 From: Manpreet Singh <63737630+ManpreetSingh2004@users.noreply.github.com> Date: Sun, 15 Oct 2023 22:31:55 +0530 Subject: [PATCH] docs: fix typo in rotateRight's docstring (#1527) --- Hashes/SHA256.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hashes/SHA256.js b/Hashes/SHA256.js index d046b9966e..25e1a865c9 100644 --- a/Hashes/SHA256.js +++ b/Hashes/SHA256.js @@ -59,14 +59,14 @@ function chunkify(str, size) { } /** - * Rotates string representation of bits to th left + * Rotates string representation of bits to the right * * @param {string} bits - string representation of bits * @param {int} turns - number of rotations to make * @return {string} - string representation of bits after rotation * * @example - * rotateLeft("1011", 3); // "1101" + * rotateRight("1011", 3); // "1101" */ function rotateRight(bits, turns) { return bits.substr(bits.length - turns) + bits.substr(0, bits.length - turns)