diff options
| author | Rob Pike <r@golang.org> | 2010-03-03 12:35:16 -0800 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2010-03-03 12:35:16 -0800 |
| commit | 90367756bb09abdf268ec120c4912a1ddfe576b1 (patch) | |
| tree | 97ce0da46fbcd14b3e5b600e3b429938206b6ef0 /src/pkg/encoding/binary | |
| parent | 3b82f295b47e0601a0cec34c27e35fa2a03484fb (diff) | |
| download | go-90367756bb09abdf268ec120c4912a1ddfe576b1.tar.xz | |
encoding/binary: fix error reporting bug
R=rsc
CC=golang-dev
https://golang.org/cl/224096
Diffstat (limited to 'src/pkg/encoding/binary')
| -rw-r--r-- | src/pkg/encoding/binary/binary.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/encoding/binary/binary.go b/src/pkg/encoding/binary/binary.go index 36f2366d64..f1d375aead 100644 --- a/src/pkg/encoding/binary/binary.go +++ b/src/pkg/encoding/binary/binary.go @@ -128,7 +128,7 @@ func Read(r io.Reader, order ByteOrder, data interface{}) os.Error { case *reflect.SliceValue: v = d default: - return os.NewError("binary.Read: invalid type " + v.Type().String()) + return os.NewError("binary.Read: invalid type " + d.Type().String()) } size := TotalSize(v) if size < 0 { |
