Skip to content

Commit b7625c3

Browse files
docs: fix typos in example code (#57)
path: './foo.txt' miss a comma, ’entry‘ was written as "etnry"...
1 parent fd0f33b commit b7625c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/unixfs/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export interface UnixFS {
401401
*
402402
* ```typescript
403403
* const cid = await fs.addFile({
404-
* path: './foo.txt'
404+
* path: './foo.txt',
405405
* content: Uint8Array.from([0, 1, 2, 3]),
406406
* mode: 0x755,
407407
* mtime: {
@@ -482,7 +482,7 @@ export interface UnixFS {
482482
*
483483
* ```typescript
484484
* for await (const entry of fs.ls(directoryCid)) {
485-
* console.info(etnry)
485+
* console.info(entry)
486486
* }
487487
* ```
488488
*/

0 commit comments

Comments
 (0)