reflect: document missing panic behavior for non-assignable values in reflect.Grow
#70760
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
Issues describing a change to documentation.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Currently, the documentation for
reflect.Grow
does not mention that the method panics if the value passed is not assignable:However, if
v
is not assignable (either because it was obtained using an unexported field or it is not addressable),Grow
will also panic. For example:The text was updated successfully, but these errors were encountered: