Update src/reflect/value.go

Co-authored-by: Ayke <aykevanlaethem@gmail.com>
This commit is contained in:
Damian Gryski
2023-03-15 07:29:27 -07:00
parent 91d6ca057c
commit e849901ad6
+1 -1
View File
@@ -988,7 +988,7 @@ func (v Value) SetBytes(x []byte) {
}
// copy the header contents over
*(*sliceHeader)(v.value) = *(*sliceHeader)(unsafe.Pointer(&x))
*(*[]byte)(v.value) = x
}
func (v Value) SetCap(n int) {