]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc/go1.21: document new bytes.Buffer methods
authorIan Lance Taylor <iant@golang.org>
Wed, 31 May 2023 18:47:14 +0000 (11:47 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 31 May 2023 19:15:27 +0000 (19:15 +0000)
For #53685

Change-Id: I237297d19afeb36ad738074d0c61caa7012f65ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/499617
Reviewed-by: Eli Bendersky <eliben@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Bypass: Ian Lance Taylor <iant@google.com>

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 -->