File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function ReverseSentence(str)
32
32
function LeftRotateString (str , n )
33
33
{
34
34
if (str&& n!= null ){
35
- return (str+ str).substr (n)
35
+ return (str+ str).substr (n, str . length )
36
36
}else {
37
37
return ' '
38
38
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function ReverseSentence(str)
26
26
function LeftRotateString (str , n )
27
27
{
28
28
if (str&& n!= null ){
29
- return (str+ str).substr (n)
29
+ return (str+ str).substr (n, str . length )
30
30
}else {
31
31
return ' '
32
32
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function ReverseSentence(str)
26
26
function LeftRotateString (str , n )
27
27
{
28
28
if (str&& n!= null ){
29
- return (str+ str).substr (n)
29
+ return (str+ str).substr (n, str . length )
30
30
}else {
31
31
return ' '
32
32
}
You can’t perform that action at this time.
0 commit comments