diff options
Diffstat (limited to 'src/pkg/encoding/gob/encode.go')
-rw-r--r-- | src/pkg/encoding/gob/encode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/encoding/gob/encode.go b/src/pkg/encoding/gob/encode.go index d158b6442..7831c02d1 100644 --- a/src/pkg/encoding/gob/encode.go +++ b/src/pkg/encoding/gob/encode.go @@ -491,7 +491,7 @@ func isZero(val reflect.Value) bool { return !val.Bool() case reflect.Complex64, reflect.Complex128: return val.Complex() == 0 - case reflect.Chan, reflect.Func, reflect.Ptr: + case reflect.Chan, reflect.Func, reflect.Interface, reflect.Ptr: return val.IsNil() case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: return val.Int() == 0 |