aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 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())