Skip to content

Commit

Permalink
chore/typo
Browse files Browse the repository at this point in the history
  • Loading branch information
webstradev authored Dec 28, 2022
1 parent 4a3e594 commit 60a9cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func New(pageText, sizeText, defaultPage, defaultPageSize string, minPageSize, m
return
}

// Validate for postive page number
// Validate for positive page number
if page < 0 {
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": "page number must be positive"})
return
Expand Down

0 comments on commit 60a9cc3

Please sign in to comment.