1 files changed, 1 insertions(+), 1 deletions(-)

M episode11/cbor.go
M episode11/cbor.go +1 -1
@@ 284,7 284,7 @@ func (e *Encoder) encode(x reflect.Value
 		// Create slice from array
 		var n = reflect.New(x.Type())
 		n.Elem().Set(x)
-		x = reflect.Indirect(n).Slice(0, x.Len())
+		x = reflect.Indirect(x).Slice(0, x.Len())
 		fallthrough
 	case reflect.Slice:
 		if x.Type().Elem().Kind() == reflect.Uint8 {