From 407aa89c88fc7bb3e4ad9ef55c2a0c5c2f92642c Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Wed, 16 Aug 2023 18:44:48 +0800 Subject: [PATCH] fmt: amend comment for getField --- src/fmt/print.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmt/print.go b/src/fmt/print.go index 9c3bd3efec..a4695dfd8d 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)