Skip to content

Commit e65a9f3

Browse files
author
ghost
committed
fixed formatting error
1 parent 0e89e57 commit e65a9f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/thealgorithms/sorts/LinkListSort.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ void task1(int[] n, int s, int m, int e) {
208208
while (j <= e) {
209209
b[k++] = n[j++];
210210
}
211-
if (e + 1 - s >= 0) System.arraycopy(b, s - s, a, s, e + 1 - s);
211+
if (e + 1 - s >= 0) {
212+
System.arraycopy(b, s - s, a, s, e + 1 - s);
213+
}
212214
}
213215
// The method task and task1 is used to sort the linklist using merge sort
214216
}

0 commit comments

Comments
 (0)