hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit b8bf01cdc6988c563d68ccf33ac8b4bd08274435
parent c2c73c2bd21090173135b9dbfdc89400450c4837
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu, 24 Mar 2016 14:18:47 +0100

hugolib: Add missing GoDoc in pagination.go

Diffstat:
Mhugolib/pagination.go | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/hugolib/pagination.go b/hugolib/pagination.go
@@ -26,6 +26,8 @@ import (
 	"strings"
 )
 
+// Pager represents one of the elements in a paginator.
+// The number, starting on 1, represents its place.
 type Pager struct {
 	number int
 	*paginator
@@ -35,10 +37,12 @@ type paginatedElement interface {
 	Len() int
 }
 
+// Len returns the number of pages in the list.
 func (p Pages) Len() int {
 	return len(p)
 }
 
+// Len returns the number of pages in the page group.
 func (psg PagesGroup) Len() int {
 	l := 0
 	for _, pg := range psg {
@@ -234,8 +238,8 @@ func splitPageGroups(pageGroups PagesGroup, size int) []paginatedElement {
 
 		var (
 			pg         PagesGroup
-			key        interface{} = nil
-			groupIndex             = -1
+			key        interface{}
+			groupIndex = -1
 		)
 
 		for k := low; k < high; k++ {