docs: fix "Example: Syncing clients without loading the Y.Doc" code

This commit is contained in:
Liucw 2023-05-17 14:52:25 +08:00 committed by GitHub
parent 5db1eed181
commit 1ce1751432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -753,7 +753,7 @@ const diff2 = Y.diffUpdate(currentState2, stateVector1)
// sync clients
currentState1 = Y.mergeUpdates([currentState1, diff2])
currentState1 = Y.mergeUpdates([currentState1, diff1])
currentState2 = Y.mergeUpdates([currentState2, diff1])
```
#### Obfuscating Updates