reflect: improve Value.String()

This commit is contained in:
Damian Gryski
2023-02-28 16:28:09 -08:00
committed by Damian Gryski
parent 90af41d089
commit 2a821d2a66
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ func (v Value) String() string {
return *(*string)(v.value)
default:
// Special case because of the special treatment of .String() in Go.
return "<T>"
return "<" + v.typecode.String() + " Value>"
}
}