mirror of
https://github.com/golang/go
synced 2024-10-06 08:00:07 +00:00
doc/go1.18: add docs on FieldByIndexErr
From: https://go-review.googlesource.com/c/go/+/357962/ Updates #47694 Change-Id: I2d43dcbd28c03457b55eada26e87f7710a113b0c Reviewed-on: https://go-review.googlesource.com/c/go/+/368364 Trust: Jeremy Faller <jeremy@golang.org> Run-TryBot: Jeremy Faller <jeremy@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
e533b5793f
commit
48e4284e55
|
@ -459,7 +459,10 @@ proposal</a>.
|
|||
</p>
|
||||
|
||||
<p><!-- CL 357962 -->
|
||||
TODO: <a href="https://golang.org/cl/357962">https://golang.org/cl/357962</a>: add FieldByIndexErr
|
||||
<a href="/pkg/reflect#Value.FieldByIndexErr"><code>Value.FieldByIndexErr</code></a>
|
||||
has been added to avoid the panic that occurs in
|
||||
<a href="/pkg/reflect#Value.FieldByIndex"><code>Value.FieldByIndex</code></a>
|
||||
when stepping through a nil pointer to an embedded struct.
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- reflect -->
|
||||
|
|
Loading…
Reference in a new issue