aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDidier Spezia <didier.06@gmail.com>2015-08-23 12:32:18 +0000
committerIan Lance Taylor <iant@golang.org>2015-09-11 14:04:46 +0000
commit41713b4d2b116edcc388dd9b12c15fd67db0efea (patch)
tree381451c55806cdad7d2fa1669c695544b05256c7 /src
parent400bb82678c34988e02d8bd0a6449b00c1965d50 (diff)
downloadgo-41713b4d2b116edcc388dd9b12c15fd67db0efea.tar.xz
cmd/doc: slice/map literals janitoring
Simplify slice/map literal expression. Caught with gofmt -d -s Change-Id: I7f38ef9fb528e2fd284bd0f190fbdf4a91956e55 Reviewed-on: https://go-review.googlesource.com/13834 Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/doc/pkg.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmd/doc/pkg.go b/src/cmd/doc/pkg.go
index 569c7a3062..daa22e459d 100644
--- a/src/cmd/doc/pkg.go
+++ b/src/cmd/doc/pkg.go
@@ -467,11 +467,7 @@ func trimUnexportedFields(fields *ast.FieldList, what string) *ast.FieldList {
unexportedField := &ast.Field{
Type: ast.NewIdent(""), // Hack: printer will treat this as a field with a named type.
Comment: &ast.CommentGroup{
- List: []*ast.Comment{
- &ast.Comment{
- Text: fmt.Sprintf("// Has unexported %s.\n", what),
- },
- },
+ List: []*ast.Comment{{Text: fmt.Sprintf("// Has unexported %s.\n", what)}},
},
}
return &ast.FieldList{