Skip to content

Commit

Permalink
Merge pull request #152 from fredgan/union-types-format-spec-print
Browse files Browse the repository at this point in the history
Bugfix #151: Remove the redundant 'union' in the tree type output
  • Loading branch information
wenovus authored Nov 6, 2020
2 parents 8589afd + 401812b commit 88fe1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func printType(w io.Writer, t *yang.YangType, verbose bool) {
fmt.Fprintf(w, " range=%s", t.Range)
}
if len(t.Type) > 0 {
fmt.Fprintf(w, "union{\n")
fmt.Fprintf(w, "{\n")
for _, t := range t.Type {
printType(indent.NewWriter(w, " "), t, verbose)
}
Expand Down

0 comments on commit 88fe1d5

Please sign in to comment.