@@ -1056,7 +1056,7 @@ func (p *Package) rewriteCall(f *File, call *Call) (string, bool) {
10561056func (p * Package ) needsPointerCheck (f * File , t ast.Expr , arg ast.Expr ) bool {
10571057 // An untyped nil does not need a pointer check, and when
10581058 // _cgoCheckPointer returns the untyped nil the type assertion we
1059- // are going to insert will fail. Easier to just skip nil arguments.
1059+ // are going to insert will fail. Easier to just skip nil arguments.
10601060 // TODO: Note that this fails if nil is shadowed.
10611061 if id , ok := arg .(* ast.Ident ); ok && id .Name == "nil" {
10621062 return false
@@ -3010,7 +3010,7 @@ func (c *typeConv) FuncType(dtype *dwarf.FuncType, pos token.Pos) *FuncType {
30103010 for i , f := range dtype .ParamType {
30113011 // gcc's DWARF generator outputs a single DotDotDotType parameter for
30123012 // function pointers that specify no parameters (e.g. void
3013- // (*__cgo_0)()). Treat this special case as void. This case is
3013+ // (*__cgo_0)()). Treat this special case as void. This case is
30143014 // invalid according to ISO C anyway (i.e. void (*__cgo_1)(...) is not
30153015 // legal).
30163016 if _ , ok := f .(* dwarf.DotDotDotType ); ok && i == 0 {
@@ -3081,7 +3081,7 @@ func (c *typeConv) Struct(dt *dwarf.StructType, pos token.Pos) (expr *ast.Struct
30813081 off := int64 (0 )
30823082
30833083 // Rename struct fields that happen to be named Go keywords into
3084- // _{keyword}. Create a map from C ident -> Go ident. The Go ident will
3084+ // _{keyword}. Create a map from C ident -> Go ident. The Go ident will
30853085 // be mangled. Any existing identifier that already has the same name on
30863086 // the C-side will cause the Go-mangled version to be prefixed with _.
30873087 // (e.g. in a struct with fields '_type' and 'type', the latter would be
@@ -3309,7 +3309,7 @@ func godefsFields(fld []*ast.Field) {
33093309// fieldPrefix returns the prefix that should be removed from all the
33103310// field names when generating the C or Go code. For generated
33113311// C, we leave the names as is (tv_sec, tv_usec), since that's what
3312- // people are used to seeing in C. For generated Go code, such as
3312+ // people are used to seeing in C. For generated Go code, such as
33133313// package syscall's data structures, we drop a common prefix
33143314// (so sec, usec, which will get turned into Sec, Usec for exporting).
33153315func fieldPrefix (fld []* ast.Field ) string {
@@ -3456,7 +3456,7 @@ func (c *typeConv) badCFType(dt *dwarf.TypedefType) bool {
34563456// Tagged pointer support
34573457// Low-bit set means tagged object, next 3 bits (currently)
34583458// define the tagged object class, next 4 bits are for type
3459- // information for the specific tagged object class. Thus,
3459+ // information for the specific tagged object class. Thus,
34603460// the low byte is for type info, and the rest of a pointer
34613461// (32 or 64-bit) is for payload, whatever the tagged class.
34623462//
0 commit comments