mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Discrepancy typo fix
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
ad1d6d6406
commit
c5319db9f1
@@ -54,7 +54,7 @@ func DecodeOptions(m map[string]interface{}) (opts Options, err error) {
|
||||
err = mapstructure.WeakDecode(m, &opts)
|
||||
|
||||
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
|
||||
// camel and snake case.
|
||||
opts.NoMap = cast.ToBool(m["no-map"])
|
||||
|
Reference in New Issue
Block a user