mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
reflect: rename reflect.ArrayCopy to be reflect.Copy.
R=r CC=golang-dev https://golang.org/cl/3601041
This commit is contained in:
parent
7ec69c179d
commit
73fd298901
5 changed files with 8 additions and 8 deletions
|
|
@ -344,7 +344,7 @@ func (d *decodeState) array(v reflect.Value) {
|
|||
newcap = 4
|
||||
}
|
||||
newv := reflect.MakeSlice(sv.Type().(*reflect.SliceType), sv.Len(), newcap)
|
||||
reflect.ArrayCopy(newv, sv)
|
||||
reflect.Copy(newv, sv)
|
||||
sv.Set(newv)
|
||||
}
|
||||
if i >= av.Len() && sv != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue