From da254c3f107cbed0f717a026e567db1f5aa9fce6 Mon Sep 17 00:00:00 2001 From: Khanbala Rashidov <50279392+KhanbalaRashidov@users.noreply.github.com> Date: Mon, 19 Dec 2022 02:09:08 +0300 Subject: [PATCH] Update BinarySearch_test.go --- BinarySearch/BinarySearch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BinarySearch/BinarySearch_test.go b/BinarySearch/BinarySearch_test.go index 2327b2e..5ba7a32 100644 --- a/BinarySearch/BinarySearch_test.go +++ b/BinarySearch/BinarySearch_test.go @@ -10,7 +10,7 @@ func SortArray(array []int) { for itemIndex, itemValue := range array { for itemIndex != 0 && array[itemIndex-1] > itemValue { array[itemIndex] = array[itemIndex-1] - itemIndex -= 1 + itemIndex -- } array[itemIndex] = itemValue }