diff options
| author | Daniel Martà <mvdan@mvdan.cc> | 2023-09-07 08:42:50 +0100 |
|---|---|---|
| committer | Daniel Martà <mvdan@mvdan.cc> | 2023-09-08 06:28:03 +0000 |
| commit | 2f0b28da1900909a2c3ddf646bb508fc7effb8f2 (patch) | |
| tree | 810c7554aa3d5cb7a93f4ab44271d336588069a7 | |
| parent | 1152615d208060afd4b6c492cc2abb8a989a8c9b (diff) | |
| download | go-2f0b28da1900909a2c3ddf646bb508fc7effb8f2.tar.xz | |
fmt: adjust comment after CL 524940
https://go.dev/cl/524940 swapped a call to Slice with Bytes,
but the comment below still referenced Slice.
Change-Id: Iedc772e1c49c4108bcd06f4cea0e637f011d053c
Reviewed-on: https://go-review.googlesource.com/c/go/+/526356
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: t hepudds <thepudds1460@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
| -rw-r--r-- | src/fmt/print.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt/print.go b/src/fmt/print.go index 9c8e331118..cb393bd763 100644 --- a/src/fmt/print.go +++ b/src/fmt/print.go @@ -875,7 +875,7 @@ func (p *pp) printValue(value reflect.Value, verb rune, depth int) { if f.Kind() == reflect.Slice || f.CanAddr() { bytes = f.Bytes() } else { - // We have an array, but we cannot Slice() a non-addressable array, + // We have an array, but we cannot Bytes() a non-addressable array, // so we build a slice by hand. This is a rare case but it would be nice // if reflection could help a little more. bytes = make([]byte, f.Len()) |
