Skip to content

Commit 001f679

Browse files
authored
Fix go-lint error
1 parent 75a861b commit 001f679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3.insertionSort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func insertionSort(arr []int) []int {
5858
current := arr[i]
5959
for preIndex >= 0 && arr[preIndex] > current {
6060
arr[preIndex+1] = arr[preIndex]
61-
preIndex -= 1
61+
preIndex--
6262
}
6363
arr[preIndex+1] = current
6464
}

0 commit comments

Comments
 (0)