Skip to content

Commit f995861

Browse files
committed
Merge pull request #4 from b6393ce9-d324-4fe1-996b-acf82dbc3d53/patch-2
Make the chunking example correct (and consistent)
2 parents 5a29de2 + aff7f0f commit f995861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ As a result, profiles exceeding 519 bytes must be split into several linked comp
250250
To chunk a JSON object, simply do the following:
251251

252252
1. check if all the remaining data fits in one chunk
253-
2. if not, choose an unregistered Namecoin key (e.g. "i/username-1" or "i/username-b5sX6gkMp8" - this will be the key of the "next" chunk) and create an empty JSON object (the current chunk), then add a pointer from this chunk to the next one (e.g. "next": "i/username")
253+
2. if not, choose an unregistered Namecoin key (e.g. "i/username-1" - this will be the key of the "next" chunk) and create an empty JSON object (the current chunk), then add a pointer from this chunk to the next one (e.g. "next": "i/username-1")
254254
4. fill the JSON object with as many properties as possible
255255
5. go back to 1
256256

@@ -263,6 +263,7 @@ The sample profile above could be chunked as follows:
263263
`"u/username"`
264264

265265
<pre><code>{
266+
"next": "i/username-1"
266267
"name": { "formatted": "John Smith" },
267268
"location": { "formatted": "New York, NY" },
268269
"website": "http://example.com",
@@ -276,7 +277,6 @@ The sample profile above could be chunked as follows:
276277
"url": "https://s3.amazonaws.com/97p/pubkey.txt"
277278
},
278279
"v": "0.2",
279-
"next": "i/username-1"
280280
}
281281
</pre></code>
282282

0 commit comments

Comments
 (0)