# HG changeset patch # User Henry Precheur # Date 1678057324 28800 # Sun Mar 05 15:02:04 2023 -0800 # Node ID 6df2791e79e7c9d5ea8769cb8f2771a06a3e4b53 # Parent eff97aaf8631151d9ad9c950d1a0019f82bd76c2 Fix typo diff --git a/episode11/cbor.go b/episode11/cbor.go --- a/episode11/cbor.go +++ b/episode11/cbor.go @@ -284,7 +284,7 @@ // 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 {