From f5015b5164d6948266df74943f26c4007c6bea50 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
Date: Fri, 23 Jun 2023 13:23:01 -0700
Subject: [PATCH] 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
---
doc/go1.21.html | 10 ++++++++++
1 file changed, 10 insertions(+)
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.
--
2.48.1