Skip to content

Commit 3cd87c1

Browse files
authored
Update tape.md
1 parent 276d178 commit 3cd87c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tape.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ Performance consideration: We can skip the content of an array entirely by acces
122122
JSON objects are represented using two 64-bit tape elements.
123123
124124
- The first 64-bit tape element contains the value `('{' << 56) + x` where the payload `x` is 1 + the index of the second 64-bit tape element on the tape.
125-
- The second 64-bit tape element contains the value `('{' << 56) + x` where the payload `x` contains the index of the first 64-bit tape element on the tape.
125+
- The second 64-bit tape element contains the value `('}' << 56) + x` where the payload `x` contains the index of the first 64-bit tape element on the tape.
126126
127127
In-between these two tape elements, we alternate between key (which must strings) and values. A value could be an object or an array.
128128
129-
All the content of the array is located between these two tape elements, including arrays and objects.
129+
All the content of the object is located between these two tape elements, including arrays and objects.
130130
131131
Performance consideration: We can skip the content of an object entirely by accessing the first 64-bit tape element, reading the payload and moving to the corresponding index on the tape.
132132

0 commit comments

Comments
 (0)