From 51bb732606f4a131a5ad2b61b9ea3809fd625aea Mon Sep 17 00:00:00 2001
From: Yifeng Wang <i@ewind.us>
Date: Wed, 5 Jan 2022 01:20:57 +0800
Subject: [PATCH] fix minor typos

---
 INTERNALS.md               | 4 ++--
 src/structs/ContentType.js | 2 +-
 src/structs/Item.js        | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/INTERNALS.md b/INTERNALS.md
index 45e987b6..a0014568 100644
--- a/INTERNALS.md
+++ b/INTERNALS.md
@@ -153,7 +153,7 @@ an incremental document updates that allows clients to sync with each other.
 The update object is an Uint8Array that efficiently encodes `Item` objects and
 the delete set.
 * `state vector`: A state vector defines the know state of each user (a set of
-  tubles `(client, clock)`). This object is also efficiently encoded as a
+  tuples `(client, clock)`). This object is also efficiently encoded as a
 Uint8Array.
 
 The client can ask a remote client for missing document updates by sending
@@ -168,7 +168,7 @@ An implementation of the syncing process is in
 ## Snapshots
 
 A snapshot can be used to restore an old document state. It is a `state vector`
-\+ `delete set`. I client can restore an old document state by iterating through
+\+ `delete set`. A client can restore an old document state by iterating through
 the sequence CRDT and ignoring all Items that have an `id.clock >
 stateVector[id.client].clock`. Instead of using `item.deleted` the client will
 use the delete set to find out if an item was deleted or not.
diff --git a/src/structs/ContentType.js b/src/structs/ContentType.js
index 30851077..8b5dabae 100644
--- a/src/structs/ContentType.js
+++ b/src/structs/ContentType.js
@@ -109,7 +109,7 @@ export class ContentType {
       if (!item.deleted) {
         item.delete(transaction)
       } else {
-        // Whis will be gc'd later and we want to merge it if possible
+        // This will be gc'd later and we want to merge it if possible
         // We try to merge all deleted items after each transaction,
         // but we have no knowledge about that this needs to be merged
         // since it is not in transaction.ds. Hence we add it to transaction._mergeStructs
diff --git a/src/structs/Item.js b/src/structs/Item.js
index 656f5e5b..06b2f968 100644
--- a/src/structs/Item.js
+++ b/src/structs/Item.js
@@ -281,7 +281,7 @@ export class Item extends AbstractStruct {
      */
     this.parentSub = parentSub
     /**
-     * If this type's effect is reundone this type refers to the type that undid
+     * If this type's effect is redone this type refers to the type that undid
      * this operation.
      * @type {ID | null}
      */