You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected both the resultant slice and the output slice to be [1 2]
What did you see instead?
Resultant slice is [1 2 2]
If this is expected behaviour, it would be good to specify in the docs that the original slice should not be used after calling this function and that instead you should only use the output slice.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?1.18
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/AP_5oYMfmUh
What did you expect to see?
Expected both the resultant slice and the output slice to be [1 2]
What did you see instead?
Resultant slice is [1 2 2]
If this is expected behaviour, it would be good to specify in the docs that the original slice should not be used after calling this function and that instead you should only use the output slice.
The text was updated successfully, but these errors were encountered: