commit | 2caf8efc93669b6c43e0441cdc6aed17546c96f3 | [log] [tgz] |
---|---|---|
author | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Sat Jun 13 17:36:06 2015 -0400 |
committer | Mitchell Hashimoto <mitchell.hashimoto@gmail.com> | Sat Jun 13 17:36:06 2015 -0400 |
tree | c925c9086f779ffe4a32f09589a78e412d69aa13 | |
parent | 6282b1c5f048889b9b9c5852f4f106d3a7cdc96b [diff] |
clarify comment
diff --git a/mapstructure.go b/mapstructure.go index ecc8218..40be511 100644 --- a/mapstructure.go +++ b/mapstructure.go
@@ -619,8 +619,7 @@ } } - // We have an embedded field. We "squash" the fields down - // if specified in the tag. + // If "squash" is specified in the tag, we squash the field down. squash := false tagParts := strings.Split(fieldType.Tag.Get(d.config.TagName), ",") for _, tag := range tagParts[1:] {