diff options
| author | Alex Flint <[email protected]> | 2016-07-31 09:14:44 -0700 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2016-07-31 09:14:44 -0700 |
| commit | 5800b89ce9817f99b805776fe86046e2a26dc536 (patch) | |
| tree | 62d7e98075b1da950cdfd4fd17dab6c40022f4bf /parse.go | |
| parent | 34b52501bde875853375c4e2b968a56b4168e790 (diff) | |
fix example function names
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") |
