aboutsummaryrefslogtreecommitdiff
path: root/src/fmt
diff options
context:
space:
mode:
authorJes Cok <xigua67damn@gmail.com>2023-08-16 10:53:49 +0000
committerGopher Robot <gobot@golang.org>2023-08-17 16:33:59 +0000
commitf278ae61d551ebd12956a1ed21ad6131495a2513 (patch)
tree45d5061bd43a6827a6a747a0e46c997fdabbdaf0 /src/fmt
parent51fd0cb3c0d8a7cb3fa5b897d74c5083577c6543 (diff)
downloadgo-f278ae61d551ebd12956a1ed21ad6131495a2513.tar.gz
go-f278ae61d551ebd12956a1ed21ad6131495a2513.zip
fmt: amend comment for getField
Change-Id: I52c9ed0c1a178f3ae3eb4f135d8f11018075fe3b GitHub-Last-Rev: 407aa89c88fc7bb3e4ad9ef55c2a0c5c2f92642c GitHub-Pull-Request: golang/go#62061 Reviewed-on: https://go-review.googlesource.com/c/go/+/519935 Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/fmt')
-rw-r--r--src/fmt/print.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt/print.go b/src/fmt/print.go
index efbe3f193e..50381f785f 100644
--- a/src/fmt/print.go
+++ b/src/fmt/print.go
@@ -336,7 +336,7 @@ func Appendln(b []byte, a ...any) []byte {
}
// getField gets the i'th field of the struct value.
-// If the field is itself is an interface, return a value for
+// If the field itself is a non-nil interface, return a value for
// the thing inside the interface, not the interface itself.
func getField(v reflect.Value, i int) reflect.Value {
val := v.Field(i)