Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0bde6 commit 0315c8aCopy full SHA for 0315c8a
Hashes/SHA256.js
@@ -59,14 +59,14 @@ function chunkify(str, size) {
59
}
60
61
/**
62
- * Rotates string representation of bits to th left
+ * Rotates string representation of bits to the right
63
*
64
* @param {string} bits - string representation of bits
65
* @param {int} turns - number of rotations to make
66
* @return {string} - string representation of bits after rotation
67
68
* @example
69
- * rotateLeft("1011", 3); // "1101"
+ * rotateRight("1011", 3); // "1101"
70
*/
71
function rotateRight(bits, turns) {
72
return bits.substr(bits.length - turns) + bits.substr(0, bits.length - turns)
0 commit comments