Changed the packet Ary error message
This commit is contained in:
@ -62,7 +62,7 @@ func (a Ary) ReadFrom(r io.Reader) (n int64, err error) {
|
|||||||
array = array.Elem()
|
array = array.Elem()
|
||||||
}
|
}
|
||||||
if !array.CanAddr() {
|
if !array.CanAddr() {
|
||||||
panic(errors.New("the contents of the array are not addressable"))
|
panic(errors.New("the contents of the Ary are not addressable"))
|
||||||
}
|
}
|
||||||
if array.Cap() < length {
|
if array.Cap() < length {
|
||||||
array.Set(reflect.MakeSlice(array.Type(), length, length))
|
array.Set(reflect.MakeSlice(array.Type(), length, length))
|
||||||
|
Reference in New Issue
Block a user