Movatterモバイル変換


[0]ホーム

URL:


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

Commit0315c8a

Browse files
docs: fix typo in rotateRight's docstring (TheAlgorithms#1527)
1 parentad0bde6 commit0315c8a

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 toth left
62+
* Rotates string representation of bits tothe 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
functionrotateRight(bits,turns){
7272
returnbits.substr(bits.length-turns)+bits.substr(0,bits.length-turns)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp