summaryrefslogtreecommitdiff
path: root/spew/common.go
diff options
context:
space:
mode:
authorDave Collins <[email protected]>2013-03-08 22:09:12 -0600
committerDave Collins <[email protected]>2013-03-08 22:15:12 -0600
commit70d81533ec31581eba20e3342aba5d52702a609f (patch)
tree02d8d81d2b6a6b4672d3a1db9c9af2db9f4f4c28 /spew/common.go
parent471552e81e198e81193f3b19abb61f901a27710a (diff)
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.
Diffstat (limited to 'spew/common.go')
-rw-r--r--spew/common.go2
1 files changed, 1 insertions, 1 deletions
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() {