From 5800b89ce9817f99b805776fe86046e2a26dc536 Mon Sep 17 00:00:00 2001 From: Alex Flint Date: Sun, 31 Jul 2016 09:14:44 -0700 Subject: fix example function names --- parse.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parse.go') diff --git a/parse.go b/parse.go index b08a298..b1193d0 100644 --- a/parse.go +++ b/parse.go @@ -95,8 +95,8 @@ func NewParser(config Config, dests ...interface{}) (*Parser, error) { // Check whether this field is supported. It's good to do this here rather than // wait until setScalar because it means that a program with invalid argument - // fields will always fail regardless of whether the arguments it recieved happend - // to exercise those fields. + // fields will always fail regardless of whether the arguments it received + // exercised those fields. var parseable bool parseable, spec.boolean, spec.multiple = canParse(field.Type) if !parseable { @@ -309,7 +309,7 @@ func validate(spec []*spec) error { return nil } -// parse a value as the apropriate type and store it in the struct +// parse a value as the appropriate type and store it in the struct func setSlice(dest reflect.Value, values []string) error { if !dest.CanSet() { return fmt.Errorf("field is not writable") -- cgit v1.2.3