From 9f37d5f6001b9379af81defbddd8ae63a0744af0 Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Tue, 6 Aug 2019 16:38:11 -0700 Subject: fix typo --- parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3