Skip to content

Commit

Permalink
fixed: mongo orm
Browse files Browse the repository at this point in the history
  • Loading branch information
zodial committed Oct 25, 2024
1 parent 45fad01 commit bbc0046
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parser/protoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,10 @@ func protoMessage(l []*word, offset int) (Message, int) {
attr = Attr{}
}
default:
attr.Doc += work.Str
// 备注内容必须在变量声明的上一行
if attr.Ty == "" {
attr.Doc += work.Str
}
}
}

Expand Down

0 comments on commit bbc0046

Please sign in to comment.