Skip to content

Commit

Permalink
chore: fix GetNextPage docstring (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Oct 11, 2024
1 parent 01516d2 commit bd0276e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/pagination/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ func (r cursorPageJSON) RawJSON() string {
return r.raw
}

// NextPage returns the next page as defined by this pagination style. When there
// is no next page, this function will return a 'nil' for the page value, but will
// not return an error
// GetNextPage returns the next page as defined by this pagination style. When
// there is no next page, this function will return a 'nil' for the page value, but
// will not return an error
func (r *CursorPage[T]) GetNextPage() (res *CursorPage[T], err error) {
items := r.Data
if items == nil || len(items) == 0 {
Expand Down Expand Up @@ -134,9 +134,9 @@ func (r singlePageJSON) RawJSON() string {
return r.raw
}

// NextPage returns the next page as defined by this pagination style. When there
// is no next page, this function will return a 'nil' for the page value, but will
// not return an error
// GetNextPage returns the next page as defined by this pagination style. When
// there is no next page, this function will return a 'nil' for the page value, but
// will not return an error
func (r *SinglePage[T]) GetNextPage() (res *SinglePage[T], err error) {
// This page represents a response that isn't actually paginated at the API level
// so there will never be a next page.
Expand Down

0 comments on commit bd0276e

Please sign in to comment.