Skip to content

Commit 6df5421

Browse files
committed
doc/go1.20: add release notes for archive/zip, encoding/binary, mime
For #48866 For #54139 For #54801 Change-Id: Iafe72ccc7e756ec1edb5bb7e8e90d385458cff29 Reviewed-on: https://go-review.googlesource.com/c/go/+/450280 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 787f816 commit 6df5421

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

doc/go1.20.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
203203
<dl id="archive/zip"><dt><a href="/pkg/archive/zip/">archive/zip</a></dt>
204204
<dd>
205205
<p><!-- CL 449955 -->
206-
TODO: <a href="https://go.dev/cl/449955">https://go.dev/cl/449955</a>: archive/zip: don&#39;t read directories containing file data
206+
Reading from a directory file that contains file data will now return an error.
207+
The zip specification does not permit directory files to contain file data,
208+
so this change only affects reading from invalid archives.
207209
</p>
208210
</dd>
209211
</dl><!-- archive/zip -->
@@ -306,7 +308,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
306308
<dl id="encoding/binary"><dt><a href="/pkg/encoding/binary/">encoding/binary</a></dt>
307309
<dd>
308310
<p><!-- CL 420274 -->
309-
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
311+
The <a href="/pkg/encoding/binary/#ReadVarint"><code>ReadVarint</code></a> and
312+
<a href="/pkg/encoding/binary/#ReadUvarint"><code>ReadUvarint</code></a>
313+
functions will now return <code>io.ErrUnexpectedEOF</code> after reading a partial value,
314+
rather than <code>io.EOF</code>.
310315
</p>
311316
</dd>
312317
</dl><!-- encoding/binary -->
@@ -418,15 +423,17 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
418423
<dl id="mime"><dt><a href="/pkg/mime/">mime</a></dt>
419424
<dd>
420425
<p><!-- https://go.dev/issue/48866 -->
421-
TODO: <a href="https://go.dev/issue/48866">https://go.dev/issue/48866</a>: allow duplicate media parameters with equal values
426+
The <code>ParseMediaType</code> function now allows duplicate parameter names,
427+
so long as the values of the names are the same.
422428
</p>
423429
</dd>
424430
</dl><!-- mime -->
425431

426432
<dl id="mime/multipart"><dt><a href="/pkg/mime/multipart/">mime/multipart</a></dt>
427433
<dd>
428434
<p><!-- CL 431675 -->
429-
TODO: <a href="https://go.dev/cl/431675">https://go.dev/cl/431675</a>: mime/multipart: use %w when wrapping error in NextPart
435+
Methods of the <code>Reader</code> type now wrap errors
436+
returned by the underlying <code>io.Reader</code>.
430437
</p>
431438
</dd>
432439
</dl><!-- mime/multipart -->

0 commit comments

Comments
 (0)