Skip to content

Commit

Permalink
Cosmetic changes (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
salim-b authored Nov 14, 2023
1 parent 6f09a5b commit 5fba4f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions R/iterate.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#'
#' `req_perform_iterative()` iteratively generates and performs requests,
#' using a callback function, `next_req`, to define the next request based on
#' the current request and response. You will probably want to it pair with an
#' the current request and response. You will probably want to pair it with an
#' [iteration helper][iterate_with_offset] and use a
#' [multi-response handler][resps_successes] to process the result.
#'
Expand All @@ -19,7 +19,7 @@
#'
#' Generally, your function needs to inspect the response, extract some data
#' from it, then use that to modify the previous request. For example, imagine
#' that the response returns a cursor, which needs to be add to the body of
#' that the response returns a cursor, which needs to be added to the body of
#' the request. The simplest version of this function might look like this:
#'
#' ```R
Expand All @@ -29,7 +29,7 @@
#' }
#' ```
#'
#' There's one problem here: if there are no more pages to return then
#' There's one problem here: if there are no more pages to return, then
#' `cursor` will be `NULL`, but `req_body_json_modify()` will still generate
#' a meaningful request. So we need to handle this specifically by
#' returning `NULL`:
Expand All @@ -43,8 +43,8 @@
#' }
#' ```
#'
#' A value of `NULL` lets `req_perform_iterative()` know there are no pages
#' remaining.
#' A value of `NULL` lets `req_perform_iterative()` know there are no more
#' pages remaining.
#'
#' There's one last feature you might want to add to your iterator: if you
#' know the total number of pages, then it's nice to let
Expand Down
10 changes: 5 additions & 5 deletions man/req_perform_iterative.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5fba4f9

Please sign in to comment.