Skip to content

Commit a21cf91

Browse files
randall77dmitshur
authored andcommitted
doc: add release note for reflect.Value.{Bytes,Len,Cap}
Update #47066 Update #52411 Change-Id: I85139d774c16c9e6d1a2592a5abba58a49338674 Reviewed-on: https://go-review.googlesource.com/c/go/+/408874 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Joseph Tsai <[email protected]>
1 parent 52f68ef commit a21cf91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/go1.19.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
308308
<dl id="reflect"><dt><a href="/pkg/reflect/">reflect</a></dt>
309309
<dd>
310310
<p><!-- CL 357331 -->
311-
TODO: <a href="https://go.dev/cl/357331">https://go.dev/cl/357331</a>: allow Value.Bytes on addressable byte arrays
311+
The method <a href="/pkg/reflect/#Value.Bytes"><code>Value.Bytes</code></a> now accepts addressable arrays in addition to slices.
312312
</p>
313313
<p><!-- CL 400954 -->
314-
TODO: <a href="https://go.dev/cl/400954">https://go.dev/cl/400954</a>: support Len and Cap on pointer-to-array Value
314+
The methods <a href="/pkg/reflect/#Value.Len"><code>Value.Len</code></a> and <a href="/pkg/reflect/#Value.Cap"><code>Value.Cap</code></a> now successfully operate on a pointer to an array and return the length of that array, to match what the <a href="https://go.dev/ref/spec#Length_and_capacity">builtin <code>len</code> and <code>cap</code> functions do</a>.
315315
</p>
316316
</dd>
317317
</dl><!-- reflect -->

0 commit comments

Comments
 (0)