Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: add "files." to read* headers
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
  • Loading branch information
alanshaw committed May 16, 2018
1 parent 31ec91f commit 8b39b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SPEC/FILES.md
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ ipfs.files.read('/hello-world', (err, buf) => {
// Hello, World!
```

#### `readReadableStream`
#### `files.readReadableStream`

> Read a file into a [`ReadableStream`][rs].
Expand All @@ -783,7 +783,7 @@ stream.on('data', (buf) => console.log(buf.toString('utf8')))
// Hello, World!
```

#### `readPullStream`
#### `files.readPullStream`

> Read a file into a [`PullStream`][ps].
Expand Down Expand Up @@ -941,4 +941,4 @@ ipfs.files.ls('/screenshots', function (err, files) {
[rs]: https://www.npmjs.com/package/readable-stream
[ps]: https://www.npmjs.com/package/pull-stream
[cid]: https://www.npmjs.com/package/cids
[blob]: https://developer.mozilla.org/en-US/docs/Web/API/Blob
[blob]: https://developer.mozilla.org/en-US/docs/Web/API/Blob

0 comments on commit 8b39b12

Please sign in to comment.