From bdf36c09cfc58d5ea3959e089f12495e89fb2431 Mon Sep 17 00:00:00 2001
From: Matt Joiner <anacrolix@gmail.com>
Date: Tue, 3 May 2016 12:51:03 +1000
Subject: [PATCH] Doc metainfo.Info.BuildFromFilePath

---
 metainfo/metainfo.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/metainfo/metainfo.go b/metainfo/metainfo.go
index 1dda2702..f6bc7690 100644
--- a/metainfo/metainfo.go
+++ b/metainfo/metainfo.go
@@ -54,6 +54,8 @@ type Info struct {
 	Files       []FileInfo `bencode:"files,omitempty"`
 }
 
+// This is a helper that sets Files and Pieces from a root path and its
+// children.
 func (info *Info) BuildFromFilePath(root string) (err error) {
 	info.Name = filepath.Base(root)
 	info.Files = nil
-- 
2.51.0