diff options
author | Matthew Dempsky <mdempsky@google.com> | 2016-02-29 15:01:00 -0800 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2016-03-07 20:53:27 +0000 |
commit | a03bdc3e6bea34abd5077205371e6fb9ef354481 (patch) | |
tree | 305aea0c37fe51db90660eef9133e6254ebf864a /src/runtime/print.go | |
parent | 1ec4f227f45f669dfcc017b1eb1d147aca5ac620 (diff) | |
download | go-a03bdc3e6bea34abd5077205371e6fb9ef354481.tar.gz go-a03bdc3e6bea34abd5077205371e6fb9ef354481.zip |
runtime: eliminate unnecessary type conversions
Automated refactoring produced using github.com/mdempsky/unconvert.
Change-Id: Iacf871a4f221ef17f48999a464ab2858b2bbaa90
Reviewed-on: https://go-review.googlesource.com/20071
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/print.go')
-rw-r--r-- | src/runtime/print.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/print.go b/src/runtime/print.go index f789f89083..32626c1e9d 100644 --- a/src/runtime/print.go +++ b/src/runtime/print.go @@ -209,7 +209,7 @@ func printstring(s string) { func printslice(s []byte) { sp := (*slice)(unsafe.Pointer(&s)) print("[", len(s), "/", cap(s), "]") - printpointer(unsafe.Pointer(sp.array)) + printpointer(sp.array) } func printeface(e eface) { |