commit | b1d44396583230853d2d6c4355943a2d08a12c94 | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Fri Aug 23 13:13:54 2019 +0200 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Fri Aug 23 11:47:47 2019 +0000 |
tree | f882e25b337636d1e077a821e6aefd8046efec74 | |
parent | 28a9191597571a404186016c8e579aaab621991b [diff] [blame] |
encoding/protobuf: remove extra space in comment Change-Id: Ia325389e474003fc20917aea45cfef4a268b4b96 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2940 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/encoding/protobuf/util.go b/encoding/protobuf/util.go index 38521ab..53b3b43 100644 --- a/encoding/protobuf/util.go +++ b/encoding/protobuf/util.go
@@ -66,7 +66,8 @@ cg.Position = 10 } for _, s := range c.Lines { - cg.List = append(cg.List, &ast.Comment{Text: "// " + s}) + s = strings.TrimRight(s, " ") + cg.List = append(cg.List, &ast.Comment{Text: "//" + s}) } return cg }