1
0
mirror of https://github.com/golang/go synced 2024-09-29 19:24:33 -06:00

reflect: fix typo in type.go

There is no 'of' relationships between float and string. This points to those interfaces with internal type float or string.
This commit is contained in:
RenJiangdu 2023-12-28 17:37:40 +08:00 committed by GitHub
parent 988b718f41
commit f301a8aa52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1914,7 +1914,7 @@ func needKeyUpdate(t *abi.Type) bool {
case Float32, Float64, Complex64, Complex128, Interface, String:
// Float keys can be updated from +0 to -0.
// String keys can be updated to use a smaller backing store.
// Interfaces might have floats of strings in them.
// Interfaces might have floats or strings in them.
return true
case Array:
tt := (*arrayType)(unsafe.Pointer(t))