mirror of https://github.com/golang/go.git
cmd/cgo: restore TrimSpace removed in saveExport
This commit is contained in:
parent
df05b9ea20
commit
a4bc4a5dc5
|
|
@ -293,6 +293,7 @@ func (f *File) saveExport(x interface{}, context astContext) {
|
|||
continue
|
||||
}
|
||||
|
||||
name = strings.TrimSpace(name)
|
||||
if name == "" {
|
||||
error_(c.Pos(), "export missing name")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue