From 0c471dfae29b0759c6f12e32d2d5ca69ea79d5d8 Mon Sep 17 00:00:00 2001 From: Kunpei Sakai Date: Sun, 25 Feb 2018 20:08:22 +0900 Subject: cmd: avoid unnecessary type conversions CL generated mechanically with github.com/mdempsky/unconvert. Also updated cmd/compile/internal/ssa/gen/*.rules manually. Change-Id: If721ef73cf0771ae83ce7e2d11623fc8d9155768 Reviewed-on: https://go-review.googlesource.com/97075 Reviewed-by: Matthew Dempsky Run-TryBot: Matthew Dempsky TryBot-Result: Gobot Gobot --- src/cmd/doc/pkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/doc/pkg.go') diff --git a/src/cmd/doc/pkg.go b/src/cmd/doc/pkg.go index 11011de018..d1a844ea76 100644 --- a/src/cmd/doc/pkg.go +++ b/src/cmd/doc/pkg.go @@ -622,7 +622,7 @@ func (pkg *Package) symbolDoc(symbol string) bool { // This a standalone identifier, as in the case of iota usage. // Thus, assume the type comes from the previous type. vspec.Type = &ast.Ident{ - Name: string(pkg.oneLineNode(typ)), + Name: pkg.oneLineNode(typ), NamePos: vspec.End() - 1, } } -- cgit v1.3-5-g9baa