Skip to content

Commit ce70814

Browse files
authored
Update article.md
My proposed change may not be right, but "make a request to URL" was unclear, and it's `fetch` that's used below to make the request. If 'request to URL' has some special meaning and is what you want to say, maybe some rephrasing is in order.
1 parent 9a4bc89 commit ce70814

File tree

1 file changed

+1
-1
lines changed
  • 1-js/12-generators-iterators/2-async-iterators-generators

1 file changed

+1
-1
lines changed

1-js/12-generators-iterators/2-async-iterators-generators/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ There are many online services that deliver paginated data. For instance, when w
270270
271271
This pattern is very common. It's not about users, but just about anything. For instance, GitHub allows to retrieve commits in the same, paginated fashion:
272272
273-
- We should make a request to URL in the form `https://api.github.com/repos/<repo>/commits`.
273+
- We should make a request to `fetch` in the form `https://api.github.com/repos/<repo>/commits`.
274274
- It responds with a JSON of 30 commits, and also provides a link to the next page in the `Link` header.
275275
- Then we can use that link for the next request, to get more commits, and so on.
276276

0 commit comments

Comments
 (0)