84
85func swap(a, b int) (int, int) {
86 temp := a
87 a = a88 b = temp
89 return a, b
90}
84
85func swap(a, b int) (int, int) {
86 temp := a
87 a = a88 b = temp
89 return a, b
90}
Useless assignments are usually a result of error.
For example:
n = n
is usually written mistakenly in place of:
myStruct.n = n