diff options
Diffstat (limited to 'pkg/context/api.go')
-rw-r--r-- | pkg/context/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/context/api.go b/pkg/context/api.go index 0aa025dc..fab66024 100644 --- a/pkg/context/api.go +++ b/pkg/context/api.go @@ -43,7 +43,7 @@ func (c *APIContext) Error(status int, title string, obj interface{}) { }) } -// SetLinkHeader sets pagination link header by given totol number and page size. +// SetLinkHeader sets pagination link header by given total number and page size. func (c *APIContext) SetLinkHeader(total, pageSize int) { page := paginater.New(total, pageSize, c.QueryInt("page"), 0) links := make([]string, 0, 4) |