From 3096b85d37c3b71fb89e42a830b90e48d12e89b4 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 22 Jun 2018 10:13:33 -0700 Subject: [PATCH] cmd/cgo: fix comment grammar Change-Id: I9c881943685177ce14841da53ccaed301c4955dd Reviewed-on: https://go-review.googlesource.com/c/149859 Reviewed-by: Tobias Klauser --- src/cmd/cgo/gcc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.50.0