]> Cypherpunks.ru repositories - gostls13.git/commitdiff
reflect: fix typo in type.go
authorRenJiangdu <38402095+renjiangdu@users.noreply.github.com>
Thu, 28 Dec 2023 09:49:45 +0000 (09:49 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 30 Dec 2023 00:23:59 +0000 (00:23 +0000)
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 <austin@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Run-TryBot: qiulaidongfeng <2645477756@qq.com>
Run-TryBot: Jorropo <jorropo.pgm@gmail.com>

src/reflect/type.go

index a35898547a7f661c3f3bfb19db2b878368e3a944..89c50155302346e42b29f2f50aa23dcd3821c960 100644 (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))