]> Cypherpunks repositories - gostls13.git/commit
reflect: clarify Value.Equal behavior for non-comparable values
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 27 Aug 2022 15:08:09 +0000 (22:08 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 30 Aug 2022 00:37:15 +0000 (00:37 +0000)
commit47f8db368cbb1971f386717ae7c76a1891a6130c
tree636e3b9e5394977c5346383ed82811b6404af04e
parent65535581aaf5441b68d8d31d3f338df4042f1972
reflect: clarify Value.Equal behavior for non-comparable values

The current implementation always returns false for non-comparable
values, update the doc to reflect that.

Change-Id: I87f2da408874b0a209c8f51949e3310da15c5904
Reviewed-on: https://go-review.googlesource.com/c/go/+/426195
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: xie cui <523516579@qq.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: hopehook <hopehook@golangcn.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/reflect/value.go