From 9a11ab4f4f14ca979cd8deee1383537426a73d45 Mon Sep 17 00:00:00 2001 From: sheffatguidance Date: Fri, 29 Jul 2016 12:53:59 -0500 Subject: Fix Issue #1869: faulty js API documentation --- js/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'js') diff --git a/js/README.md b/js/README.md index 15d48c87..f4184621 100644 --- a/js/README.md +++ b/js/README.md @@ -152,8 +152,7 @@ idea of how the library generally works: // Serializes to a UInt8Array. bytes = message.serializeBinary(); - var message2 = new MyMessage(); - message2.deserializeBinary(bytes); + var message2 = MyMessage.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. -- cgit v1.2.3