Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/ipfs-unixfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ The UnixFS spec can be found in the [ipfs/specs repository](http://github.com/ip

```JavaScript
const data = new UnixFS({ type: 'file' })
data.addBlockSize(256) // add the size of each block
data.addBlockSize(256)
data.addBlockSize(256n) // add the size of each block
data.addBlockSize(256n)
// ...
```

Expand Down Expand Up @@ -68,7 +68,7 @@ const data = new UnixFS([options])
## Example - Add and remove a block size to the block size list

```JavaScript
data.addBlockSize(<size in bytes>)
data.addBlockSize(<size in BigInt(bytes)>)
```

```JavaScript
Expand Down
Loading