]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: fix comment grammar
authorIan Lance Taylor <iant@golang.org>
Fri, 22 Jun 2018 17:13:33 +0000 (10:13 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 16 Nov 2018 13:47:05 +0000 (13:47 +0000)
Change-Id: I9c881943685177ce14841da53ccaed301c4955dd
Reviewed-on: https://go-review.googlesource.com/c/149859
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/cmd/cgo/gcc.go

index 9b615db5db6dd0f8cf02560ea7a3e08a13ec866a..23b60a646afc8224bfa9f2017600dc33e0c8268b 100644 (file)
@@ -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