diff --git a/doc/go1.20.html b/doc/go1.20.html index 571c466134ef6..ab09effaff34d 100644 --- a/doc/go1.20.html +++ b/doc/go1.20.html @@ -26,7 +26,7 @@

DRAFT RELEASE NOTES — Introduction to Go 1.20

Changes to the language

- Go 1.20 includes three changes to the language. + Go 1.20 includes four changes to the language.

@@ -56,6 +56,15 @@

Changes to the language

what the implementations have always done.

+

+ Comparable types (such as ordinary interfaces) + may now satisfy comparable constraints, even if the type arguments + are not strictly comparable (comparison may panic at runtime). + This makes it possible to instantiate a type parameter constrained by comparable + (e.g., a type parameter for a user-defined generic map key) with a non-strictly comparable type argument + such as an interface type, or a composite type containing an interface type. +

+

Ports

FreeBSD/RISC-V