Skip to content

Commit

Permalink
docs: fix typo in rotateRight's docstring (#1527)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManpreetXSingh authored Oct 15, 2023
1 parent ad0bde6 commit 0315c8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hashes/SHA256.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0315c8a

Please sign in to comment.