We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fd5abf commit 72414ceCopy full SHA for 72414ce
tour/chapter.go
@@ -2,13 +2,13 @@ package tour
2
3
import "fmt"
4
5
-// sections within.
+// 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)
+// 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))
0 commit comments