Skip to content

Commit a4bc4a5

Browse files
author
1911860538
committed
cmd/cgo: restore TrimSpace removed in saveExport
1 parent df05b9e commit a4bc4a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/cgo/ast.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ func (f *File) saveExport(x interface{}, context astContext) {
293293
continue
294294
}
295295

296+
name = strings.TrimSpace(name)
296297
if name == "" {
297298
error_(c.Pos(), "export missing name")
298299
}

0 commit comments

Comments
 (0)