@@ -203,7 +203,9 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
203
203
< dl id ="archive/zip "> < dt > < a href ="/pkg/archive/zip/ "> archive/zip</ a > </ dt >
204
204
< dd >
205
205
< p > <!-- CL 449955 -->
206
- TODO: < a href ="https://go.dev/cl/449955 "> https://go.dev/cl/449955</ a > : archive/zip: don'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.
207
209
</ p >
208
210
</ dd >
209
211
</ dl > <!-- archive/zip -->
@@ -306,7 +308,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
306
308
< dl id ="encoding/binary "> < dt > < a href ="/pkg/encoding/binary/ "> encoding/binary</ a > </ dt >
307
309
< dd >
308
310
< 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 > .
310
315
</ p >
311
316
</ dd >
312
317
</ dl > <!-- encoding/binary -->
@@ -418,15 +423,17 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
418
423
< dl id ="mime "> < dt > < a href ="/pkg/mime/ "> mime</ a > </ dt >
419
424
< dd >
420
425
< 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.
422
428
</ p >
423
429
</ dd >
424
430
</ dl > <!-- mime -->
425
431
426
432
< dl id ="mime/multipart "> < dt > < a href ="/pkg/mime/multipart/ "> mime/multipart</ a > </ dt >
427
433
< dd >
428
434
< 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 > .
430
437
</ p >
431
438
</ dd >
432
439
</ dl > <!-- mime/multipart -->
0 commit comments