Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0315c8a

Browse files
docs: fix typo in rotateRight's docstring (TheAlgorithms#1527)
1 parent ad0bde6 commit 0315c8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Hashes/SHA256.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ function chunkify(str, size) {
5959
}
6060

6161
/**
62-
* Rotates string representation of bits to th left
62+
* Rotates string representation of bits to the right
6363
*
6464
* @param {string} bits - string representation of bits
6565
* @param {int} turns - number of rotations to make
6666
* @return {string} - string representation of bits after rotation
6767
*
6868
* @example
69-
* rotateLeft("1011", 3); // "1101"
69+
* rotateRight("1011", 3); // "1101"
7070
*/
7171
function rotateRight(bits, turns) {
7272
return bits.substr(bits.length - turns) + bits.substr(0, bits.length - turns)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /