summaryrefslogtreecommitdiff
path: root/ds
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2020-08-06 11:18:13 +0100
committerPaul Buetow <paul@buetow.org>2020-08-06 11:18:13 +0100
commitf8cd759c94be1f0daeba46940fac0ca3d4201388 (patch)
tree817149e0a1fa331e4d9f74e55910c6dd0d9bc802 /ds
parentd330522b31f9a32e9549745008b596fdca9b17e5 (diff)
parentddee1778446fbdf17587fed5ba2b6edc76c05b69 (diff)
merge
Diffstat (limited to 'ds')
-rw-r--r--ds/arraylist.go2
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