Преглед изворни кода

Fix Issue #1869: faulty js API documentation

sheffatguidance пре 9 година
родитељ
комит
9a11ab4f4f
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      js/README.md

+ 1 - 2
js/README.md

@@ -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();
-    message2.deserializeBinary(bytes);
+    var message2 = MyMessage.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.