summaryrefslogtreecommitdiff
path: root/libgo/go/go/printer/nodes.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/go/printer/nodes.go')
-rw-r--r--libgo/go/go/printer/nodes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/go/printer/nodes.go b/libgo/go/go/printer/nodes.go
index 53f36092fda..b2a48c28a73 100644
--- a/libgo/go/go/printer/nodes.go
+++ b/libgo/go/go/printer/nodes.go
@@ -354,7 +354,7 @@ func (p *printer) isOneLineFieldList(list []*ast.Field) bool {
}
func (p *printer) setLineComment(text string) {
- p.setComment(&ast.CommentGroup{[]*ast.Comment{&ast.Comment{token.NoPos, text}}})
+ p.setComment(&ast.CommentGroup{[]*ast.Comment{{token.NoPos, text}}})
}
func (p *printer) fieldList(fields *ast.FieldList, isStruct, isIncomplete bool) {