cmd/cgo: fix comment grammar

Change-Id: I9c881943685177ce14841da53ccaed301c4955dd
Reviewed-on: https://go-review.googlesource.com/c/149859
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
Ian Lance Taylor 2018-06-22 10:13:33 -07:00
parent 03eb137aa3
commit 3096b85d37

View file

@ -1095,8 +1095,8 @@ func (p *Package) mangle(f *File, arg *ast.Expr) (ast.Expr, bool) {
return *arg, needsUnsafe return *arg, needsUnsafe
} }
// checkIndex checks whether arg the form &a[i], possibly inside type // checkIndex checks whether arg has the form &a[i], possibly inside
// conversions. If so, it writes // type conversions. If so, it writes
// _cgoIndexNN := a // _cgoIndexNN := a
// _cgoNN := &cgoIndexNN[i] // with type conversions, if any // _cgoNN := &cgoIndexNN[i] // with type conversions, if any
// to sb, and writes // 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 // checkAddr checks whether arg has the form &x, possibly inside type
// conversions. If so it writes // conversions. If so, it writes
// _cgoBaseNN := &x // _cgoBaseNN := &x
// _cgoNN := _cgoBaseNN // with type conversions, if any // _cgoNN := _cgoBaseNN // with type conversions, if any
// to sb, and writes // to sb, and writes