Skip to content

Commit 3233542

Browse files
renjiangdumvdan
authored andcommitted
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. Change-Id: I14449f00c192e0d3f8270b433ff508978b7fdf17 GitHub-Last-Rev: f301a8a GitHub-Pull-Request: #64885 Reviewed-on: https://go-review.googlesource.com/c/go/+/552957 Reviewed-by: Austin Clements <[email protected]> Reviewed-by: David Chase <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Jorropo <[email protected]> Run-TryBot: qiulaidongfeng <[email protected]> Run-TryBot: Jorropo <[email protected]>
1 parent 988b718 commit 3233542

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)