From 70d81533ec31581eba20e3342aba5d52702a609f Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 8 Mar 2013 22:09:12 -0600 Subject: Dump byte arrays and slices like hexdump -C. This commit modifies the Dump family functions to output byte arrays and slices like hexdump -C as specified in issue #9. --- spew/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spew/common.go') diff --git a/spew/common.go b/spew/common.go index e452260..11b6d56 100644 --- a/spew/common.go +++ b/spew/common.go @@ -120,7 +120,7 @@ func catchPanic(w io.Writer, v reflect.Value) { func handleMethods(cs *ConfigState, w io.Writer, v reflect.Value) (handled bool) { // We need an interface to check if the type implements the error or // Stringer interface. However, the reflect package won't give us an - // an interface on certain things like unexported struct fields in order + // interface on certain things like unexported struct fields in order // to enforce visibility rules. We use unsafe to bypass these restrictions // since this package does not mutate the values. if !v.CanInterface() { -- cgit v1.2.3