Skip to content

Commit f301a8a

Browse files
authored
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.
1 parent 988b718 commit f301a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ func needKeyUpdate(t *abi.Type) bool {
19141914
case Float32, Float64, Complex64, Complex128, Interface, String:
19151915
// Float keys can be updated from +0 to -0.
19161916
// String keys can be updated to use a smaller backing store.
1917-
// Interfaces might have floats of strings in them.
1917+
// Interfaces might have floats or strings in them.
19181918
return true
19191919
case Array:
19201920
tt := (*arrayType)(unsafe.Pointer(t))

0 commit comments

Comments
 (0)