From: Jeremy Faller
Date: Wed, 1 Dec 2021 22:03:15 +0000 (-0500)
Subject: doc/go1.18: add docs on FieldByIndexErr
X-Git-Tag: go1.18beta1~114
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=48e4284e551fceee7a45c11af791813782ca7e82;p=gostls13.git
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
Run-TryBot: Jeremy Faller
TryBot-Result: Gopher Robot
Reviewed-by: Ian Lance Taylor
---
diff --git a/doc/go1.18.html b/doc/go1.18.html
index 5692a068ab..8f0fc1fb71 100644
--- a/doc/go1.18.html
+++ b/doc/go1.18.html
@@ -459,7 +459,10 @@ proposal.
- TODO: https://golang.org/cl/357962: add FieldByIndexErr
+ Value.FieldByIndexErr
+ has been added to avoid the panic that occurs in
+ Value.FieldByIndex
+ when stepping through a nil pointer to an embedded struct.