diff --git a/README.md b/README.md index cadeb69..dbaf2f5 100644 --- a/README.md +++ b/README.md @@ -98,9 +98,7 @@ func DropletList(ctx context.Context, client *godo.Client) ([]godo.Droplet, erro } // append the current page's droplets to our list - for _, d := range droplets { - list = append(list, d) - } + list = append(list, d...) // if we are at the last page, break out the for loop if resp.Links == nil || resp.Links.IsLastPage() {