Skip to content

Commit

Permalink
Merge pull request #19 from recurly/readme-pagination
Browse files Browse the repository at this point in the history
Quick fix NextPage() to Fetch()
  • Loading branch information
bhelx committed May 1, 2020
2 parents fc16af7 + 5f30cbf commit c416454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ After fetching the last page, `HasMore` will be false.

```go
for accounts.HasMore {
err := accounts.NextPage()
err := accounts.Fetch()
if err {
fmt.Printf("Failed to retrieve next page: %v", err)
break
Expand Down

0 comments on commit c416454

Please sign in to comment.