diff --git a/repl/evaldisplay.go b/repl/evaldisplay.go index f32ae5b..f4e72d8 100644 --- a/repl/evaldisplay.go +++ b/repl/evaldisplay.go @@ -89,7 +89,7 @@ func (r *REPL) displayResult(ctx context.Context, w io.Writer, res any, concise fmt.Fprintf(w, "]") } else { // In the off-chance that this is actually a slice of printables - vt := reflect.SliceOf(reflect.TypeOf(v[0])) + vt := reflect.ValueOf(res).Type() if tp, ok := r.typePrinters[vt]; ok { canDisplay := true