Skip to content

Commit 72414ce

Browse files
author
Brian Tiger Chow
committed
docs(tour) chapter
1 parent 1fd5abf commit 72414ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tour/chapter.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package tour
22

33
import "fmt"
44

5-
// sections within.
5+
// returns a partially applied function.
66
//
77
// It's designed to make it easy to re-order chapters with minimal fuss.
88
//
99
// eg.
1010
// Intro := Chapter(1)
11-
// ID("1.1") == Intro(1)
11+
// ID("1.1") == Intro(1) == Chapter(1)(1)
1212
func Chapter(number int) func(topic int) ID {
1313
return func(topic int) ID {
1414
return ID(fmt.Sprintf("%d.%d", number, topic))

0 commit comments

Comments
 (0)