diff options
Diffstat (limited to 'src/pkg/gob/encoder.go')
| -rw-r--r-- | src/pkg/gob/encoder.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/gob/encoder.go b/src/pkg/gob/encoder.go index 3d217e272..e24c18d20 100644 --- a/src/pkg/gob/encoder.go +++ b/src/pkg/gob/encoder.go @@ -78,7 +78,7 @@ func (enc *Encoder) sendType(origt reflect.Type) { return case *reflect.SliceType: // If it's []uint8, don't send; it's considered basic. - if _, ok := rt.Elem().(*reflect.Uint8Type); ok { + if rt.Elem().Kind() == reflect.Uint8 { return } // Otherwise we do send. |
