diff --git a/README.md b/README.md index 7a7d048..4b5b214 100644 --- a/README.md +++ b/README.md @@ -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