Skip to content

Commit faab3bb

Browse files
committed
Prefer leading comments over description for outputs to maintain compatability.
1 parent 69bc5b8 commit faab3bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ func outputs(list *ast.ObjectList) []Output {
120120
items := item.Val.(*ast.ObjectType).List.Items
121121
var desc string
122122
switch {
123-
case description(items) != "":
124-
desc = description(items)
125123
case item.LeadComment != nil:
126124
desc = comment(item.LeadComment.List)
125+
case description(items) != "":
126+
desc = description(items)
127127
}
128128

129129
ret = append(ret, Output{

0 commit comments

Comments
 (0)