From 001f679d912bfaa75cf12a85b94c279309a00133 Mon Sep 17 00:00:00 2001 From: "colynn.liu" Date: Mon, 30 Nov 2020 21:43:17 +0800 Subject: [PATCH] Fix go-lint error --- 3.insertionSort.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.insertionSort.md b/3.insertionSort.md index c828cb3..56d6fab 100644 --- a/3.insertionSort.md +++ b/3.insertionSort.md @@ -58,7 +58,7 @@ func insertionSort(arr []int) []int { current := arr[i] for preIndex >= 0 && arr[preIndex] > current { arr[preIndex+1] = arr[preIndex] - preIndex -= 1 + preIndex-- } arr[preIndex+1] = current }