Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy