aboutsummaryrefslogtreecommitdiff
path: root/js/README.md
diff options
context:
space:
mode:
authorsheffatguidance <cody.sheffler@guidancesoftware.com>2016-07-29 12:53:59 -0500
committerGitHub <noreply@github.com>2016-07-29 12:53:59 -0500
commit9a11ab4f4f14ca979cd8deee1383537426a73d45 (patch)
tree5345a56dece94cc549a844299b0649e36a69d210 /js/README.md
parente7982e409deab9cb4390dd574441604e846caf7f (diff)
downloadprotobuf-9a11ab4f4f14ca979cd8deee1383537426a73d45.tar.gz
protobuf-9a11ab4f4f14ca979cd8deee1383537426a73d45.tar.bz2
protobuf-9a11ab4f4f14ca979cd8deee1383537426a73d45.zip
Fix Issue #1869: faulty js API documentation
Diffstat (limited to 'js/README.md')
-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.