Skip to content

Commit 6c51ff7

Browse files
committed
docs: fix Split examples
1 parent 043315d commit 6c51ff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ func (r *ReplyMarkup) Row(many ...Btn) Row {
197197
// For example, if you pass six buttons and 3 as the max, you get two rows with
198198
// three buttons in each.
199199
//
200-
// Split(3, []Btn{six buttons...}) -> [[1, 2, 3], [4, 5, 6]]
201-
// Split(2, []Btn{six buttons...}) -> [[1, 2],[3, 4],[5, 6]]
200+
// `Split(3, []Btn{six buttons...}) -> [[1, 2, 3], [4, 5, 6]]`
201+
// `Split(2, []Btn{six buttons...}) -> [[1, 2],[3, 4],[5, 6]]`
202202
//
203203
func (r *ReplyMarkup) Split(max int, btns []Btn) []Row {
204204
rows := make([]Row, (max-1+len(btns))/max)

0 commit comments

Comments
 (0)