From: Ian Lance Taylor Date: Fri, 23 Jun 2023 20:23:01 +0000 (-0700) Subject: doc/go1.21: context.Background and TODO may now appear equal X-Git-Tag: go1.21rc3~2^2~60 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f5015b5164d6948266df74943f26c4007c6bea50;p=gostls13.git doc/go1.21: context.Background and TODO may now appear equal Fixes #60978 Change-Id: I3e4bd366dc30ac435698b8f17170695330034683 Reviewed-on: https://go-review.googlesource.com/c/go/+/505795 TryBot-Bypass: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Sameer Ajmani Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go1.21.html b/doc/go1.21.html index cbba30975e..d3c1d13647 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -473,6 +473,16 @@ Do not send CLs removing the interior tags from such phrases. The new AfterFunc function registers a function to run after a context has been cancelled.

+ +

+ An optimization means that the results of calling + Background + and TODO and + converting them to a shared type can be considered equal. + In previous releases they were always different. Comparing + Context values + for equality has never been well-defined, so this is not + considered to be an incompatible change.