From 53e39619591c1ff3f1f5835accd3e98fefe5c647 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Thu, 10 Oct 2024 10:10:06 +0000 Subject: [PATCH] chore: fix GetNextPage docstring --- 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 d41f647d..fd832e00 100644 --- a/internal/pagination/pagination.go +++ b/internal/pagination/pagination.go @@ -35,9 +35,9 @@ func (r pageJSON) 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 *Page[T]) GetNextPage() (res *Page[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. @@ -130,9 +130,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 {