Skip to content

Commit 3cea9e6

Browse files
ianlancetaylorgopherbot
authored andcommitted
doc/go1.21: document new bytes.Buffer methods
For #53685 Change-Id: I237297d19afeb36ad738074d0c61caa7012f65ac Reviewed-on: https://go-review.googlesource.com/c/go/+/499617 Reviewed-by: Eli Bendersky <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Bypass: Ian Lance Taylor <[email protected]>
1 parent 481665e commit 3cea9e6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

doc/go1.21.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,14 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
333333

334334
<dl id="bytes"><dt><a href="/pkg/bytes/">bytes</a></dt>
335335
<dd>
336-
<p><!-- https://go.dev/issue/53685 -->
337-
TODO: <a href="https://go.dev/issue/53685">https://go.dev/issue/53685</a>: add Buffer.Available and Buffer.AvailableBuffer
338-
</p>
339-
340-
<p><!-- CL 474635 -->
341-
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
336+
<p><!-- https://go.dev/issue/53685, CL 474635 -->
337+
The <a href="/pkg/bytes/#Buffer"><code>Buffer</code></a> type
338+
has two new methods:
339+
<a href="/pkg/bytes/#Buffer.Available"><code>Available</code></a>
340+
and <a href="/pkg/bytes/#AvailableBuffer"><code>AvailableBuffer</code></a>.
341+
These may be used along with the
342+
<a href="/pkg/bytes/#Buffer.Write"><code>Write</code></a>
343+
method to append directly to the <code>Buffer</code>.
342344
</p>
343345
</dd>
344346
</dl><!-- bytes -->

0 commit comments

Comments
 (0)