diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2020-04-02 17:41:39 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2020-04-03 05:33:35 +0000 |
commit | a9a78b7005f400e52d8891b01458539e801cf8ad (patch) | |
tree | 05cb51c5e27b8d118d6cfeae89f366110ff9b498 | |
parent | dcf0929de6a12103a8fd7097abd6e797188c366d (diff) | |
download | go-a9a78b7005f400e52d8891b01458539e801cf8ad.tar.gz go-a9a78b7005f400e52d8891b01458539e801cf8ad.zip |
doc: document testing.TB.TempDir in release notes
Updates #35998
Change-Id: I93784e9a9efdd1531e3c342aa0899bf059da0ae1
Reviewed-on: https://go-review.googlesource.com/c/go/+/226983
Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r-- | doc/go1.15.html | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/doc/go1.15.html b/doc/go1.15.html index d5b5832913..e75132bfa7 100644 --- a/doc/go1.15.html +++ b/doc/go1.15.html @@ -148,23 +148,35 @@ TODO <dl id="sync"><dt><a href="/pkg/sync/">sync</a></dt> <dd> - <p><!-- golang.org/issue/33762 --> + <p><!-- CL 205899, golang.org/issue/33762 --> The new method - <a href="/pkg/sync#Map.LoadAndDelete"><code>Map.LoadAndDelete</code></a> + <a href="/pkg/sync/#Map.LoadAndDelete"><code>Map.LoadAndDelete</code></a> atomically deletes a key and returns the previous value if present. </p> <p><!-- CL 205899 --> The method - <a href="/pkg/sync#Map.Delete"><code>Map.Delete</code></a> + <a href="/pkg/sync/#Map.Delete"><code>Map.Delete</code></a> is more efficient. </p> </dl><!-- sync --> +<dl id="testing"><dt><a href="/pkg/testing/">testing</a></dt> + <dd> + <p><!-- CL 226877, golang.org/issue/35998 --> + The new methods + <a href="/pkg/testing/#T.TempDir"><code>T.TempDir</code></a> and + <a href="/pkg/testing/#B.TempDir"><code>B.TempDir</code></a> and + return temporary directories that are automatically cleaned up + at the end of the test. + </p> + </dd> +</dl><!-- testing --> + <dl id="time"><dt><a href="/pkg/time/">time</a></dt> <dd> - <p><!-- golang.org/issue/33184 --> + <p><!-- CL 220424, CL 217362, golang.org/issue/33184 --> The new method - <a href="/pkg/time#Ticker.Reset"><code>Ticker.Reset</code></a> + <a href="/pkg/time/#Ticker.Reset"><code>Ticker.Reset</code></a> supports changing the duration of a ticker. </p> </dd> |