diff options
| author | Paul Buetow <paul@buetow.org> | 2020-08-06 11:18:13 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2020-08-06 11:18:13 +0100 |
| commit | f8cd759c94be1f0daeba46940fac0ca3d4201388 (patch) | |
| tree | 817149e0a1fa331e4d9f74e55910c6dd0d9bc802 /ds | |
| parent | d330522b31f9a32e9549745008b596fdca9b17e5 (diff) | |
| parent | ddee1778446fbdf17587fed5ba2b6edc76c05b69 (diff) | |
merge
Diffstat (limited to 'ds')
| -rw-r--r-- | ds/arraylist.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ds/arraylist.go b/ds/arraylist.go index 7bc002a..d3feef5 100644 --- a/ds/arraylist.go +++ b/ds/arraylist.go @@ -36,7 +36,7 @@ func (a ArrayList) Sorted() bool { return true } -func (a ArrayList) SwapPos(i, j int) { +func (a ArrayList) Swap(i, j int) { tmp := a[i] a[i] = a[j] a[j] = tmp |
