Index: third_party/protobuf/js/README.md |
diff --git a/third_party/protobuf/js/README.md b/third_party/protobuf/js/README.md |
index f4184621c272937a77f1d4520a3eb0ccd54ad99e..15d48c87f706bc7258f5e48f667b162704b44c62 100644 |
--- a/third_party/protobuf/js/README.md |
+++ b/third_party/protobuf/js/README.md |
@@ -152,7 +152,8 @@ idea of how the library generally works: |
// Serializes to a UInt8Array. |
bytes = message.serializeBinary(); |
- var message2 = MyMessage.deserializeBinary(bytes); |
+ var message2 = new MyMessage(); |
+ message2.deserializeBinary(bytes); |
For more examples, see the tests. You can also look at the generated code |
to see what methods are defined for your generated messages. |