]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add release note for reflect.Value.{Bytes,Len,Cap}
authorKeith Randall <khr@golang.org>
Thu, 26 May 2022 16:52:44 +0000 (09:52 -0700)
committerDmitri Shuralyov <dmitshur@google.com>
Mon, 30 May 2022 15:47:08 +0000 (15:47 +0000)
Update #47066
Update #52411

Change-Id: I85139d774c16c9e6d1a2592a5abba58a49338674
Reviewed-on: https://go-review.googlesource.com/c/go/+/408874
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
doc/go1.19.html

index c809e105515ee32a7381c63521c38f96179c2155..df2166d3c10e075ff3ede7a8f26fa0f6599e195f 100644 (file)
@@ -308,10 +308,10 @@ Do not send CLs removing the interior tags from such phrases.
 <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 -->