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
The root cause seems to be somewhere near this append call. The result of append can return a slice backed by the same array if the capacity is available. See Go example code: https://go.dev/play/p/2FGKuCvCUKz.
The text was updated successfully, but these errors were encountered:
Sample code:
Playground: https://go.dev/play/p/Rr5bm5DbEql
Output:
Notice how the second and third value in that slice both point to
b
.Expected output:
The root cause seems to be somewhere near this append call. The result of
append
can return a slice backed by the same array if the capacity is available. See Go example code: https://go.dev/play/p/2FGKuCvCUKz.The text was updated successfully, but these errors were encountered: