aboutsummaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
authorGravatar Joshua Haberman <jhaberman@gmail.com>2016-07-29 16:52:01 -0700
committerGravatar GitHub <noreply@github.com>2016-07-29 16:52:01 -0700
commit6b3d120539abb0bd12833cd95ae4f9c03f3e5350 (patch)
tree32b069b945f60868fdd38404f40d7cc11f82134d /js
parent1112989a1bf4ead40d4c3b4f624623bec4966e03 (diff)
parent9a11ab4f4f14ca979cd8deee1383537426a73d45 (diff)
Merge pull request #1887 from sheffatguidance/fix-js-api-documentation
Fix Issue #1869: faulty js API documentation
Diffstat (limited to 'js')
-rw-r--r--js/README.md3
1 files changed, 1 insertions, 2 deletions
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.