From b353f75e219f3de1cef84f51f3896c0d56444fdd Mon Sep 17 00:00:00 2001
From: Brian Tiger Chow <brian.holderchow@gmail.com>
Date: Tue, 4 Nov 2014 22:34:38 -0800
Subject: [PATCH] docs(tour) comment Chapter func

---
 tour/all.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tour/all.go b/tour/all.go
index 723249a1e..b09bd9236 100644
--- a/tour/all.go
+++ b/tour/all.go
@@ -94,6 +94,12 @@ var FileBasicsMounting = Content{
 	`,
 }
 
+// Chapter is used to define a chapter once and derive IDs for any number of
+// sections within.
+//
+// eg.
+// 		Intro := Chapter(1)
+// 		ID("1.1") == Intro(1)
 func Chapter(number int) func(topic int) ID {
 	return func(topic int) ID {
 		return ID(fmt.Sprintf("%d.%d", number, topic))
-- 
GitLab