Skip to content

Commit

Permalink
Get the "root" key as expected.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Banning committed Jan 5, 2018
1 parent 70bcf64 commit 1f1a1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion missingtags.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func MissingXMLTags(b []byte, val interface{}) ([]string, string, error) {
// strip off the root value
var root string
var v interface{}
for _, v = range m {
for root, v = range m {
break
}

Expand Down

0 comments on commit 1f1a1c2

Please sign in to comment.