This commit is contained in:
Alex Flint 2019-08-06 16:38:11 -07:00
parent fcdfbc090b
commit 9f37d5f600
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ func (p *Parser) val(dest path) reflect.Value {
// parse a value as the appropriate type and store it in the struct
func setSlice(dest reflect.Value, values []string, trunc bool) error {
if !dest.CanSet() {
return fmt.Errorf("field is not val")
return fmt.Errorf("field is not writable")
}
var ptr bool