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

Commit 41cf3a5

Browse files
achingbrainAlan Shaw
authored and
Alan Shaw
committed
docs: update signatures to show optional args (#363)
..otherwise it looks like combinations of args are optional rather than individual args.
1 parent 0c10490 commit 41cf3a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SPEC/PIN.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
##### `Go` **WIP**
1212

13-
##### `JavaScript` - ipfs.pin.add(hash, [options, callback])
13+
##### `JavaScript` - ipfs.pin.add(hash, [options], [callback])
1414

1515
Where:
1616

@@ -40,7 +40,7 @@ ipfs.pin.add(hash, function (err) {})
4040
4141
##### `Go` **WIP**
4242

43-
##### `JavaScript` - ipfs.pin.ls([hash, options, callback])
43+
##### `JavaScript` - ipfs.pin.ls([hash], [options], [callback])
4444

4545
Where:
4646

@@ -71,7 +71,7 @@ A great source of [examples][] can be found in the tests for this API.
7171
7272
##### `Go` **WIP**
7373

74-
##### `JavaScript` - ipfs.pin.rm(hash, [options, callback])
74+
##### `JavaScript` - ipfs.pin.rm(hash, [options], [callback])
7575

7676
Where:
7777
- `hash` is a multihash.

0 commit comments

Comments
 (0)