diff --git a/doc/go1.18.html b/doc/go1.18.html index 1ad651ffe85..3018ed1b4a8 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -236,11 +236,17 @@ proposal.
- TODO: https://golang.org/cl/345569: add Writer.AvailableBuffer
+ The new Writer.AvailableBuffer
+ method returns an empty buffer with a possibly non-empty capacity for use
+ with append-like APIs. After appending, the buffer can be provided to a
+ succeeding Write
call and possibly avoid any copying.
- TODO: https://golang.org/cl/345570: make Reader.Reset and Writer.Reset work on the zero value
+ The methods Reader.Reset
and
+ Writer.Reset
+ now use the default buffer size when called on objects with a
+ nil
buffer.