Discrepancy typo fix

This commit is contained in:
Christian Oliff 2019-08-24 00:21:37 +09:00 committed by Bjørn Erik Pedersen
parent ad1d6d6406
commit c5319db9f1

View file

@ -54,7 +54,7 @@ func DecodeOptions(m map[string]interface{}) (opts Options, err error) {
err = mapstructure.WeakDecode(m, &opts) err = mapstructure.WeakDecode(m, &opts)
if !opts.NoMap { if !opts.NoMap {
// There was for a long time a disrepency between documentation and // There was for a long time a discrepancy between documentation and
// implementation for the noMap property, so we need to support both // implementation for the noMap property, so we need to support both
// camel and snake case. // camel and snake case.
opts.NoMap = cast.ToBool(m["no-map"]) opts.NoMap = cast.ToBool(m["no-map"])