| commit | 4f8da8648efca8f9c9cbb98d182c5bc5d036dcdf | [log] [tgz] |
|---|---|---|
| author | David Symonds <dsymonds@golang.org> | Mon Jun 24 10:57:29 2013 +1000 |
| committer | David Symonds <dsymonds@golang.org> | Mon Jun 24 10:57:29 2013 +1000 |
| tree | db5e184c9c8970b5e9ca4ff4d528b34d67fc60a1 | |
| parent | 9c8d84777b6fee44dab4318277b1f3b3b235e021 [diff] [blame] |
goprotobuf: Use p.isUnmarshaler consistently in decode.go. Fixes #41. R=crawshaw, r CC=golang-dev https://codereview.appspot.com/10474043
diff --git a/proto/decode.go b/proto/decode.go index e0e9445..a38d391 100644 --- a/proto/decode.go +++ b/proto/decode.go
@@ -645,7 +645,7 @@ } // If the object can unmarshal itself, let it. - if p.isMarshaler { + if p.isUnmarshaler { iv := structPointer_Interface(bas, p.stype) return iv.(Unmarshaler).Unmarshal(raw) }