From 1ce17514321415d526130df977277630ac5cba44 Mon Sep 17 00:00:00 2001 From: Liucw Date: Wed, 17 May 2023 14:52:25 +0800 Subject: [PATCH] docs: fix "Example: Syncing clients without loading the Y.Doc" code --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e5fff2b..8b755dfd 100644 --- a/README.md +++ b/README.md @@ -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