Skip to content

Commit

Permalink
docs: fix typos in example code (#57)
Browse files Browse the repository at this point in the history
path: './foo.txt' miss a comma,
’entry‘ was written as "etnry"...
  • Loading branch information
BetterWorld-Liuser authored Jul 25, 2023
1 parent fd0f33b commit b7625c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/unixfs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export interface UnixFS {
*
* ```typescript
* const cid = await fs.addFile({
* path: './foo.txt'
* path: './foo.txt',
* content: Uint8Array.from([0, 1, 2, 3]),
* mode: 0x755,
* mtime: {
Expand Down Expand Up @@ -482,7 +482,7 @@ export interface UnixFS {
*
* ```typescript
* for await (const entry of fs.ls(directoryCid)) {
* console.info(etnry)
* console.info(entry)
* }
* ```
*/
Expand Down

0 comments on commit b7625c3

Please sign in to comment.