]> Cypherpunks repositories - gostls13.git/commitdiff
doc: document testing.TB.TempDir in release notes
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 3 Apr 2020 00:41:39 +0000 (17:41 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 3 Apr 2020 05:33:35 +0000 (05:33 +0000)
Updates #35998

Change-Id: I93784e9a9efdd1531e3c342aa0899bf059da0ae1
Reviewed-on: https://go-review.googlesource.com/c/go/+/226983
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.15.html

index d5b583291337ae0ff3df7cb569812c0e85a4c515..e75132bfa74c2535950a42722d7b628afa64a524 100644 (file)
@@ -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>