diff --git a/docs/advanced-python.md b/docs/advanced-python.md index 18817fe..8a6a289 100644 --- a/docs/advanced-python.md +++ b/docs/advanced-python.md @@ -81,7 +81,7 @@ changed = "Hello beautiful world" # Generate a compact diff d = diff(original, changed) -print(d) # [5, ' beautiful world'] +print(d) # [5, ' beautiful', 6] # Reconstruct the changed text from the diff reconstructed = undiff(original, d) diff --git a/docs/advanced-ts.md b/docs/advanced-ts.md index 6ffb09f..48c9d46 100644 --- a/docs/advanced-ts.md +++ b/docs/advanced-ts.md @@ -236,7 +236,7 @@ const changed = 'Hello beautiful world'; // Generate a compact diff const changes = diff(original, changed); -console.log(changes); // [5, " beautiful world"] +console.log(changes); // [5, " beautiful", 6] // Reconstruct the changed text from the diff const reconstructed = undiff(original, changes);