From 9545cef848a9e1604bf6a1cf919c09177b2f0af8 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 3 Jul 2018 09:33:59 +0100 Subject: [PATCH] docs: signify optional params and do it consistently License: MIT Signed-off-by: Alan Shaw --- SPEC/DAG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SPEC/DAG.md b/SPEC/DAG.md index e97aa583c..3887389bd 100644 --- a/SPEC/DAG.md +++ b/SPEC/DAG.md @@ -12,7 +12,7 @@ ##### `Go` **WIP** -##### `JavaScript` - ipfs.dag.put(dagNode, options, callback) +##### `JavaScript` - ipfs.dag.put(dagNode, [options], [callback]) - `dagNode` - a DAG node that follows one of the supported IPLD formats. - `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. ##### `Go` **WIP** -##### `JavaScript` - ipfs.dag.get(cid [, path, options], callback) +##### `JavaScript` - ipfs.dag.get(cid, [path], [options], [callback]) - `cid` - can be one of the following: - 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. ##### `Go` **WIP** -##### `JavaScript` - ipfs.dag.tree(cid [, path, options], callback) +##### `JavaScript` - ipfs.dag.tree(cid, [path], [options], [callback]) - `cid` - can be one of the following: - a [CID](https://github.com/ipfs/js-cid) instance.