Skip to content

Commit

Permalink
fix(gen): fix description trimmer
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev committed Aug 14, 2023
1 parent 484f2da commit a0f079c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/gen/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,6 @@ func isDeprecated(opts protoreflect.ProtoMessage) bool {

func mkDescription(description string) (d string) {
d = strings.TrimSpace(description)
d = strings.TrimLeft(d, "// ")
d = strings.TrimLeft(d, "/ ")
return d
}

0 comments on commit a0f079c

Please sign in to comment.