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:
parent
988b718f41
commit
f301a8aa52
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user