| commit | 4ede8453f5683ad5e3ec082a5427c9842b63100c | [log] [tgz] |
|---|---|---|
| author | Nigel Tao <nigeltao@golang.org> | Thu Apr 28 11:27:25 2011 +1000 |
| committer | David Symonds <dsymonds@golang.org> | Thu Apr 28 11:27:25 2011 +1000 |
| tree | 1cba20ef16502256c7a37253d3aa1d31e4cee2b5 | |
| parent | 84a086d70ddbd25844c2ee1fe2dcefbf344b9a0d [diff] [blame] |
goprotobuf: gofixes for reflect API changes. R=dsymonds CC=golang-dev http://codereview.appspot.com/4425077
diff --git a/proto/text.go b/proto/text.go index 3f2eac4..10f24b6 100644 --- a/proto/text.go +++ b/proto/text.go
@@ -198,7 +198,7 @@ aw.complete = true aw.compact = compact - v := reflect.NewValue(pb) + v := reflect.ValueOf(pb) // We should normally be passed a struct, or a pointer to a struct, // and we don't want the outer < and > in that case. v = reflect.Indirect(v)