From 82fcf749bde1aae839ce520edfff04d2daf70987 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 13 Apr 2020 19:40:11 +0200 Subject: [PATCH] cmd/cgo: fix parameter name in godoc comment for badPointerTypedef The parameter name is dt, not t. Also, line-wrap the godoc comment. Change-Id: Ie012d2a5680525b88e244a3380d72bc4f61da8e7 Reviewed-on: https://go-review.googlesource.com/c/go/+/228058 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Matt Layher Reviewed-by: Ian Lance Taylor --- src/cmd/cgo/gcc.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go index c4128e9502..668a246b5f 100644 --- a/src/cmd/cgo/gcc.go +++ b/src/cmd/cgo/gcc.go @@ -3006,8 +3006,9 @@ func (c *typeConv) anonymousStructTypedef(dt *dwarf.TypedefType) bool { return ok && st.StructName == "" } -// badPointerTypedef reports whether t is a C typedef that should not be considered a pointer in Go. -// A typedef is bad if C code sometimes stores non-pointers in this type. +// badPointerTypedef reports whether dt is a C typedef that should not be +// considered a pointer in Go. A typedef is bad if C code sometimes stores +// non-pointers in this type. // TODO: Currently our best solution is to find these manually and list them as // they come up. A better solution is desired. func (c *typeConv) badPointerTypedef(dt *dwarf.TypedefType) bool {