84 85func swap(a, b int) (int, int) { 86 temp := a 87 a = a88 b = temp 89 return a, b 90}
Self-assignment of variables is pointless and should be avoided.
x = x