aboutsummaryrefslogtreecommitdiff
path: root/lib/ints/ints.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ints/ints.go')
-rw-r--r--lib/ints/ints.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ints/ints.go b/lib/ints/ints.go
index c75c2f9b..4e252420 100644
--- a/lib/ints/ints.go
+++ b/lib/ints/ints.go
@@ -282,9 +282,7 @@ func Swap(d []int, x, y int) {
if x == y || len(d) <= 1 || x > len(d) || y > len(d) {
return
}
- tmp := d[x]
- d[x] = d[y]
- d[y] = tmp
+ d[x], d[y] = d[y], d[x]
}
// To64 convert slice of integer to 64 bit values.