Explorar o código

Fixed typo in example code

Paul-Louis Ageneau %!s(int64=4) %!d(string=hai) anos
pai
achega
7670883b75
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -183,11 +183,11 @@ pc.onGatheringStateChange([](PeerConnection::GatheringState state) {
 ```cpp
 auto dc = pc.createDataChannel("test");
 
-dc.onOpen([]() {
+dc->onOpen([]() {
     cout << "Open" << endl;
 });
 
-dc.onMessage([](variant<binary, string> message) {
+dc->onMessage([](variant<binary, string> message) {
     if (holds_alternative<string>(message)) {
         cout << "Received: " << get<string>(message) << endl;
     }