From 3233542e8514f641883119e6afa3ae1256b7642b Mon Sep 17 00:00:00 2001 From: RenJiangdu <38402095+renjiangdu@users.noreply.github.com> Date: Thu, 28 Dec 2023 09:49:45 +0000 Subject: [PATCH] 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: f301a8aa5294e7669361627c82b2978652cfc14b GitHub-Pull-Request: golang/go#64885 Reviewed-on: https://go-review.googlesource.com/c/go/+/552957 Reviewed-by: Austin Clements Reviewed-by: David Chase TryBot-Result: Gopher Robot Reviewed-by: Jorropo Run-TryBot: qiulaidongfeng <2645477756@qq.com> Run-TryBot: Jorropo --- src/reflect/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reflect/type.go b/src/reflect/type.go index a35898547a..89c5015530 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -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)) -- 2.48.1