|
|
|
|
|
by skj
4048 days ago
|
|
No, nicksardo's understanding was quite correct. Slices are values, and it is impossible to return the same one, because value semantics don't work like that. The slice returned only points to a new array when the capacity is not large enough to fit additional values. |
|