diff --git a/bindings/matrix-sdk-crypto-nodejs/README.md b/bindings/matrix-sdk-crypto-nodejs/README.md index c55024c7c..51bed6f2e 100644 --- a/bindings/matrix-sdk-crypto-nodejs/README.md +++ b/bindings/matrix-sdk-crypto-nodejs/README.md @@ -140,7 +140,7 @@ async function main() { // Let's pretend we have received changes and events from a // `/sync` endpoint of a Matrix homeserver, … - const toDeviceEvents = "{}"; // JSON-encoded + const toDeviceEvents = "[]"; // JSON-encoded list of events const changedDevices = new DeviceLists(); const oneTimeKeyCounts = {}; const unusedFallbackKeys = [];