docs(tour) chapter
Brian Tiger Chow committed
Nov 5, 2014 at 00:04 UTC
72414ce72c1c9bd6a08ef0fae020930a7047ec58
1 file changed
+2
-2
tour/chapter.go
+2
-2
@@ -2,13 +2,13 @@ package tour
2
3
import "fmt"
4
5
-// sections within.
5
+// returns a partially applied function.
6
//
7
// It's designed to make it easy to re-order chapters with minimal fuss.
8
//
9
// eg.
10
// Intro := Chapter(1)
11
-// ID("1.1") == Intro(1)
11
+// ID("1.1") == Intro(1) == Chapter(1)(1)
12
func Chapter(number int) func(topic int) ID {
13
return func(topic int) ID {
14
return ID(fmt.Sprintf("%d.%d", number, topic))