diff options
| author | Paul Buetow <paul@buetow.org> | 2020-07-17 09:25:48 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2020-07-17 09:25:48 +0100 |
| commit | 224cff0a5113b1ea1a09fd48caf164e5690ec8a7 (patch) | |
| tree | 06faddeef4fdc4792b47576b332f28cea0bacbbb /sort/shell.go | |
| parent | 8f291992bdd98bd7ca6eefe084790e56d00833a8 (diff) | |
refactor
Diffstat (limited to 'sort/shell.go')
| -rw-r--r-- | sort/shell.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sort/shell.go b/sort/shell.go index 39414f5..4132ca6 100644 --- a/sort/shell.go +++ b/sort/shell.go @@ -4,7 +4,7 @@ import ( "algorithms/ds" ) -func Shell(a []ds.Comparer) []ds.Comparer { +func Shell(a ds.ArrayList) ds.ArrayList { length := len(a) // h-sort the array h := 1 |
