From: Ian Lance Taylor Date: Thu, 27 May 2021 23:12:12 +0000 (-0700) Subject: doc/go1.17: clarify that compress/lzw Reader and Writer types are new X-Git-Tag: go1.17beta1~74 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=639acdc833;p=gostls13.git doc/go1.17: clarify that compress/lzw Reader and Writer types are new For #26535 For #44513 For #46005 Change-Id: I70d3711ab6451a61b526abb3da8e91243f637656 Reviewed-on: https://go-review.googlesource.com/c/go/+/323273 Trust: Ian Lance Taylor Reviewed-by: Joe Tsai --- diff --git a/doc/go1.17.html b/doc/go1.17.html index d0a0c0f33f..b3485a0ca6 100644 --- a/doc/go1.17.html +++ b/doc/go1.17.html @@ -331,11 +331,16 @@ Do not send CLs removing the interior tags from such phrases.
compress/lzw

- The new - Reader.Reset - and - Writer.Reset - methods allow reuse of a Reader or Writer. + The NewReader + function is guaranteed to return a value of the new + type Reader, + and similarly NewWriter + is guaranteed to return a value of the new + type Writer. + These new types both implement a Reset method + (Reader.Reset, + Writer.Reset) + that allows reuse of the Reader or Writer.