From ffe6f9a949ef0105afd74f1fc48ef909f13449f2 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Thu, 15 Jan 2015 12:06:25 -0800 Subject: [PATCH] doc(core_io/Add) @jbenet wasn't sure about the terminology here. I'm certain what I wrote is not entirely correct. Feel free to edit. --- core/io/add.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/io/add.go b/core/io/add.go index b12bc6380..50b8832fb 100644 --- a/core/io/add.go +++ b/core/io/add.go @@ -20,6 +20,8 @@ import ( u "github.com/jbenet/go-ipfs/util" ) +// Add builds a merkledag from the a reader, pinning all objects to the local +// datastore. Returns a key representing the root node. func Add(n *core.IpfsNode, r io.Reader) (u.Key, error) { // TODO more attractive function signature importer.BuildDagFromReader dagNode, err := importer.BuildDagFromReader(