Commit 9a11ab4f authored by sheffatguidance's avatar sheffatguidance Committed by GitHub

Fix Issue #1869: faulty js API documentation

parent e7982e40
...@@ -152,8 +152,7 @@ idea of how the library generally works: ...@@ -152,8 +152,7 @@ idea of how the library generally works:
// Serializes to a UInt8Array. // Serializes to a UInt8Array.
bytes = message.serializeBinary(); bytes = message.serializeBinary();
var message2 = new MyMessage(); var message2 = MyMessage.deserializeBinary(bytes);
message2.deserializeBinary(bytes);
For more examples, see the tests. You can also look at the generated code For more examples, see the tests. You can also look at the generated code
to see what methods are defined for your generated messages. to see what methods are defined for your generated messages.
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