Skip to content

Commit

Permalink
Rename iterate() to loop() in vignette
Browse files Browse the repository at this point in the history
Closes #62
  • Loading branch information
lionel- committed Jan 6, 2025
1 parent 5862d1a commit 67120bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/generator.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ while (!is_exhausted(x <- abc())) {
}
```

A simpler way is to iterate with a `for` loop using the `iterate()` helper. Within `iterate()`, `for` understands the iterator protocol:
A simpler way is to iterate with a `for` loop using the `loop()` helper. Within `loop()`, `for` understands the iterator protocol:

```{r}
abc <- generate_abc()
Expand Down

0 comments on commit 67120bc

Please sign in to comment.