]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: fix parameter name in godoc comment for badPointerTypedef
authorTobias Klauser <tklauser@distanz.ch>
Mon, 13 Apr 2020 17:40:11 +0000 (19:40 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 13 Apr 2020 18:08:35 +0000 (18:08 +0000)
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 <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matt Layher <mdlayher@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/gcc.go

index c4128e9502e4667f0f6a71ee6dc3b9034ffb4257..668a246b5fe2a6be115a310fd182424ed3f483f3 100644 (file)
@@ -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 {