diff options
Diffstat (limited to 'libgo/go/go/types/universe.go')
-rw-r--r-- | libgo/go/go/types/universe.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/go/types/universe.go b/libgo/go/go/types/universe.go index 40185c1ad4..cc3bd5a370 100644 --- a/libgo/go/go/types/universe.go +++ b/libgo/go/go/types/universe.go @@ -196,7 +196,7 @@ func init() { // func def(obj Object) { name := obj.Name() - if strings.Index(name, " ") >= 0 { + if strings.Contains(name, " ") { return // nothing to do } // fix Obj link for named types |