summaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.go b/parse.go
index 2126ee5..2a6b7c7 100644
--- a/parse.go
+++ b/parse.go
@@ -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