From bd0276e4bf1b076d27ee7dbfaf14d284f83acb1e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:12:46 +0000 Subject: [PATCH] chore: fix GetNextPage docstring (#388) --- internal/pagination/pagination.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/pagination/pagination.go b/internal/pagination/pagination.go index a6419a8..879a9de 100644 --- a/internal/pagination/pagination.go +++ b/internal/pagination/pagination.go @@ -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 { @@ -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.