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

Commit dad7f81

Browse files
committed
fix(files): fix typo
1 parent 4bb7b46 commit dad7f81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

API/files/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ ipfs.files.cat(multihash, function (err, file) {
126126

127127
##### `JavaScript` - ipfs.files.get(hash, [callback])
128128

129-
Where `hash` is an IPFS multiaddress or multihash.
129+
Where `hash` is an IPFS multihash or straight multihash.
130130

131131
`callback` must follow `function (err, stream) {}` signature, where `err` is an
132132
error if the operation was not successful. `stream` will be a Readable stream in
@@ -148,8 +148,8 @@ If no `callback` is passed, a promise is returned with the Readable stream.
148148
Example:
149149

150150
```js
151-
var multiaddr = '/ipfs/QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF'
152-
ipfs.files.get(multiaddr, function (err, stream) {
151+
var multihashStr = '/ipfs/QmQ2r6iMNpky5f1m4cnm3Yqw8VSvjuKpTcK1X7dBR1LkJF'
152+
ipfs.files.get(multihashStr, function (err, stream) {
153153
stream.on('data', (file) => {
154154
// write the file's path and contents to standard out
155155
console.log(file.path)

0 commit comments

Comments
 (0)