Commit 90367756 authored by Rob Pike's avatar Rob Pike

encoding/binary: fix error reporting bug

R=rsc
CC=golang-dev
https://golang.org/cl/224096
parent 3b82f295
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment