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

Commit 8b39b12

Browse files
authored
fix: add "files." to read* headers
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
1 parent 31ec91f commit 8b39b12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SPEC/FILES.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ ipfs.files.read('/hello-world', (err, buf) => {
757757
// Hello, World!
758758
```
759759

760-
#### `readReadableStream`
760+
#### `files.readReadableStream`
761761

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

786-
#### `readPullStream`
786+
#### `files.readPullStream`
787787

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

0 commit comments

Comments
 (0)