]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.20: add release notes for archive/zip, encoding/binary, mime
authorDamien Neil <dneil@google.com>
Mon, 14 Nov 2022 20:35:19 +0000 (12:35 -0800)
committerDamien Neil <dneil@google.com>
Tue, 15 Nov 2022 16:24:58 +0000 (16:24 +0000)
For #48866
For #54139
For #54801

Change-Id: Iafe72ccc7e756ec1edb5bb7e8e90d385458cff29
Reviewed-on: https://go-review.googlesource.com/c/go/+/450280
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
doc/go1.20.html

index a64a8d8f3e79a55e128609a273f33d10f72df43a..25ece4de0bbd57e29b772472b008f8e3265ede1f 100644 (file)
@@ -203,7 +203,9 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="archive/zip"><dt><a href="/pkg/archive/zip/">archive/zip</a></dt>
   <dd>
     <p><!-- CL 449955 -->
-      TODO: <a href="https://go.dev/cl/449955">https://go.dev/cl/449955</a>: archive/zip: don&#39;t read directories containing file data
+      Reading from a directory file that contains file data will now return an error.
+      The zip specification does not permit directory files to contain file data,
+      so this change only affects reading from invalid archives.
     </p>
   </dd>
 </dl><!-- archive/zip -->
@@ -306,7 +308,10 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="encoding/binary"><dt><a href="/pkg/encoding/binary/">encoding/binary</a></dt>
   <dd>
     <p><!-- CL 420274 -->
-      TODO: <a href="https://go.dev/cl/420274">https://go.dev/cl/420274</a>: encoding/binary: ReadUvarint return io.ErrUnexpectedEOF when read at least 1 byte
+      The <a href="/pkg/encoding/binary/#ReadVarint"><code>ReadVarint</code></a> and
+      <a href="/pkg/encoding/binary/#ReadUvarint"><code>ReadUvarint</code></a>
+      functions will now return <code>io.ErrUnexpectedEOF</code> after reading a partial value,
+      rather than <code>io.EOF</code>.
     </p>
   </dd>
 </dl><!-- encoding/binary -->
@@ -418,7 +423,8 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="mime"><dt><a href="/pkg/mime/">mime</a></dt>
   <dd>
     <p><!-- https://go.dev/issue/48866 -->
-      TODO: <a href="https://go.dev/issue/48866">https://go.dev/issue/48866</a>: allow duplicate media parameters with equal values
+      The <code>ParseMediaType</code> function now allows duplicate parameter names,
+      so long as the values of the names are the same.
     </p>
   </dd>
 </dl><!-- mime -->
@@ -426,7 +432,8 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="mime/multipart"><dt><a href="/pkg/mime/multipart/">mime/multipart</a></dt>
   <dd>
     <p><!-- CL 431675 -->
-      TODO: <a href="https://go.dev/cl/431675">https://go.dev/cl/431675</a>: mime/multipart: use %w when wrapping error in NextPart
+      Methods of the <code>Reader</code> type now wrap errors
+      returned by the underlying <code>io.Reader</code>.
     </p>
   </dd>
 </dl><!-- mime/multipart -->