From 719321d413bcc61e56786399799a9c80e94ab5d8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 8 Aug 2020 16:00:07 +0100 Subject: fortune not found Quick commit --- sort/parallelquick.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sort/parallelquick.go') diff --git a/sort/parallelquick.go b/sort/parallelquick.go index 2ac9f0e..cde4b5e 100644 --- a/sort/parallelquick.go +++ b/sort/parallelquick.go @@ -12,15 +12,15 @@ func ParallelQuick(a ds.ArrayList) ds.ArrayList { } func parallelQuick(a ds.ArrayList) { - length := len(a) - if length <= 10 { + l := len(a) + if l <= 10 { Insertion(a) return } j := quickPartition(a) - if length >= 1000 { + if l >= 1000 { var wg sync.WaitGroup wg.Add(2) defer wg.Wait() -- cgit v1.2.3