From 06c8d4c68650bbc1fc158d90a44c4c17644c7889 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 8 Aug 2020 14:06:12 +0100 Subject: wrapup --- sort/selection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sort/selection.go') diff --git a/sort/selection.go b/sort/selection.go index 66d221e..798fa27 100644 --- a/sort/selection.go +++ b/sort/selection.go @@ -10,7 +10,7 @@ func Selection(a ds.ArrayList) ds.ArrayList { for i := 0; i < length; i++ { min := i for j := i + 1; j < length; j++ { - if a[min].Higher(a[j]) { + if a[min] > a[j] { min = j } } -- cgit v1.2.3