Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 7, 2018
1 parent ac2555b commit 2e901bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Creates a new DAGNode instance with the union of node.links plus the new link.
#### rmLink(node, nameOrCid, callback)

- `node` - type: DAGNode
- `nameOrCid` - type: String or CID buffer
- `nameOrCid` - type: String, CID object or CID buffer
- `callback` - type: function with signature `function (err, node) {}`

Removes a link from the node by name. Returns a *new* instance of DAGNode without modifying the old one.
Expand Down Expand Up @@ -242,7 +242,7 @@ const DAGLink = dagPB.DAGLink
DAGLink.create(
'link-to-file', // name of the link (can be empty)
10, // size in bytes
'QmSomeHash...', // can be cid buffer or string
'QmSomeHash...', // can be CID object, CID buffer or string
(err, link) => {
if (err) {
throw err
Expand Down

0 comments on commit 2e901bb

Please sign in to comment.