From: Ian Lance Taylor Date: Fri, 22 Jun 2018 17:13:33 +0000 (-0700) Subject: cmd/cgo: fix comment grammar X-Git-Tag: go1.12beta1~339 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3096b85d37c3b71fb89e42a830b90e48d12e89b4;p=gostls13.git cmd/cgo: fix comment grammar Change-Id: I9c881943685177ce14841da53ccaed301c4955dd Reviewed-on: https://go-review.googlesource.com/c/149859 Reviewed-by: Tobias Klauser --- diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go index 9b615db5db..23b60a646a 100644 --- a/src/cmd/cgo/gcc.go +++ b/src/cmd/cgo/gcc.go @@ -1095,8 +1095,8 @@ func (p *Package) mangle(f *File, arg *ast.Expr) (ast.Expr, bool) { return *arg, needsUnsafe } -// checkIndex checks whether arg the form &a[i], possibly inside type -// conversions. If so, it writes +// checkIndex checks whether arg has the form &a[i], possibly inside +// type conversions. If so, it writes // _cgoIndexNN := a // _cgoNN := &cgoIndexNN[i] // with type conversions, if any // to sb, and writes @@ -1135,7 +1135,7 @@ func (p *Package) checkIndex(sb, sbCheck *bytes.Buffer, arg ast.Expr, i int) boo } // checkAddr checks whether arg has the form &x, possibly inside type -// conversions. If so it writes +// conversions. If so, it writes // _cgoBaseNN := &x // _cgoNN := _cgoBaseNN // with type conversions, if any // to sb, and writes