Changed the packet Ary error message

This commit is contained in:
Nicholas Novak
2021-11-11 16:12:49 -07:00
parent b367864c2b
commit d9853b25aa

View File

@ -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))