Skip to content

Commit

Permalink
doc: add release note for reflect.Value.{Bytes,Len,Cap}
Browse files Browse the repository at this point in the history
Update golang#47066
Update golang#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]>
  • Loading branch information
randall77 authored and dmitshur committed May 30, 2022
1 parent 52f68ef commit a21cf91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/go1.19.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<dl id="reflect"><dt><a href="/pkg/reflect/">reflect</a></dt>
<dd>
<p><!-- CL 357331 -->
TODO: <a href="https://go.dev/cl/357331">https://go.dev/cl/357331</a>: allow Value.Bytes on addressable byte arrays
The method <a href="/pkg/reflect/#Value.Bytes"><code>Value.Bytes</code></a> now accepts addressable arrays in addition to slices.
</p>
<p><!-- CL 400954 -->
TODO: <a href="https://go.dev/cl/400954">https://go.dev/cl/400954</a>: support Len and Cap on pointer-to-array Value
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>.
</p>
</dd>
</dl><!-- reflect -->
Expand Down

0 comments on commit a21cf91

Please sign in to comment.