The value of the Slice has been Changed!!
shadowedge opened this issue · 1 comments
shadowedge commented
with the line 47 of the code sliceArrays.go,it says:
// This change does not go to S12
a[1] = "-N2-"
but Actually, the changes of a[1] does go to S12 !
By the way , the Book is right: "However, array a and slice S12 are still connected because the capacity of S12 has not
changed."
mactsouk commented
@shadowedge You are correct. I have changed the comments in sliceArrays.go
to reflect what you said.