diff options
Diffstat (limited to 'src/encoding/xml/typeinfo.go')
| -rw-r--r-- | src/encoding/xml/typeinfo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/xml/typeinfo.go b/src/encoding/xml/typeinfo.go index 2f123fdbb4..12d3918760 100644 --- a/src/encoding/xml/typeinfo.go +++ b/src/encoding/xml/typeinfo.go @@ -46,7 +46,7 @@ const ( var tinfoMap sync.Map // map[reflect.Type]*typeInfo -var nameType = reflect.TypeOf(Name{}) +var nameType = reflect.TypeFor[Name]() // getTypeInfo returns the typeInfo structure with details necessary // for marshaling and unmarshaling typ. |
