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

Commit 91a1b5e

Browse files
authored
docs: signify optional params and do it consistently (#322)
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 3369be6 commit 91a1b5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SPEC/DAG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
##### `Go` **WIP**
1414

15-
##### `JavaScript` - ipfs.dag.put(dagNode, options, callback)
15+
##### `JavaScript` - ipfs.dag.put(dagNode, [options], [callback])
1616

1717
- `dagNode` - a DAG node that follows one of the supported IPLD formats.
1818
- `options` - a object that might contain the following values:
@@ -48,7 +48,7 @@ A great source of [examples][] can be found in the tests for this API.
4848
4949
##### `Go` **WIP**
5050

51-
##### `JavaScript` - ipfs.dag.get(cid [, path, options], callback)
51+
##### `JavaScript` - ipfs.dag.get(cid, [path], [options], [callback])
5252

5353
- `cid` - can be one of the following:
5454
- a [CID](https://github.com/ipfs/js-cid) instance.
@@ -119,7 +119,7 @@ A great source of [examples][] can be found in the tests for this API.
119119
120120
##### `Go` **WIP**
121121

122-
##### `JavaScript` - ipfs.dag.tree(cid [, path, options], callback)
122+
##### `JavaScript` - ipfs.dag.tree(cid, [path], [options], [callback])
123123

124124
- `cid` - can be one of the following:
125125
- a [CID](https://github.com/ipfs/js-cid) instance.

0 commit comments

Comments
 (0)