Skip to content

Commit f278ae6

Browse files
callthingsoffgopherbot
authored andcommitted
fmt: amend comment for getField
Change-Id: I52c9ed0c1a178f3ae3eb4f135d8f11018075fe3b GitHub-Last-Rev: 407aa89 GitHub-Pull-Request: #62061 Reviewed-on: https://go-review.googlesource.com/c/go/+/519935 Auto-Submit: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Rob Pike <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 51fd0cb commit f278ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fmt/print.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func Appendln(b []byte, a ...any) []byte {
336336
}
337337

338338
// getField gets the i'th field of the struct value.
339-
// If the field is itself is an interface, return a value for
339+
// If the field itself is a non-nil interface, return a value for
340340
// the thing inside the interface, not the interface itself.
341341
func getField(v reflect.Value, i int) reflect.Value {
342342
val := v.Field(i)

0 commit comments

Comments
 (0)