Slices are like references to arrays
A slice doesn’t own its data — it’s just a view into an underlying array. No copying happens when you slice.
Because of that, if you change an element through a slice, you’re changing the array. And if another slice points to the same part of that array, it sees the change too.
Try it: Notice how modifying b[0] also changes what a sees, because both slices overlap on the same underlying array.