]> Cypherpunks.ru repositories - gostls13.git/blobdiff - doc/go1.21.html
doc/go1.21: document new bytes.Buffer methods
[gostls13.git] / doc / go1.21.html
index 76f5451a0e7f9277af821e49df2bf75141eb6e6d..a80d11bbc5b1e56bd1188989bd3df78bd64eff54 100644 (file)
@@ -333,12 +333,14 @@ Do not send CLs removing the interior tags from such phrases.
 
 <dl id="bytes"><dt><a href="/pkg/bytes/">bytes</a></dt>
   <dd>
-    <p><!-- https://go.dev/issue/53685 -->
-      TODO: <a href="https://go.dev/issue/53685">https://go.dev/issue/53685</a>: add Buffer.Available and Buffer.AvailableBuffer
-    </p>
-
-    <p><!-- CL 474635 -->
-      TODO: <a href="https://go.dev/cl/474635">https://go.dev/cl/474635</a>: bytes: add Buffer.Available and Buffer.AvailableBuffer; modified api/next/53685.txt
+    <p><!-- https://go.dev/issue/53685, CL 474635 -->
+      The <a href="/pkg/bytes/#Buffer"><code>Buffer</code></a> type
+      has two new methods:
+      <a href="/pkg/bytes/#Buffer.Available"><code>Available</code></a>
+      and <a href="/pkg/bytes/#AvailableBuffer"><code>AvailableBuffer</code></a>.
+      These may be used along with the
+      <a href="/pkg/bytes/#Buffer.Write"><code>Write</code></a>
+      method to append directly to the <code>Buffer</code>.
     </p>
   </dd>
 </dl><!-- bytes -->