Skip to content

Commit e9a6fc0

Browse files
authored
Corrected padLeftWithInto
1 parent 3d55452 commit e9a6fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/StringLib.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static String sumStringsWithSeparator(List lst, String sep)
5151
public static String padLeftWithInto(String s,String c,int n)
5252
{ String result = "";
5353

54-
for (int i = 1; i < n - s.length(); i++)
54+
for (int i = 0; i < n - s.length(); i++)
5555
{
5656
result = result + c;
5757
}

0 commit comments

Comments
 (0)