Skip to content

Commit 8ecf0c5

Browse files
clarify reasoning for repeat{} vs. while(TRUE){}
1 parent eba3399 commit 8ecf0c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/repeat_linter.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#' Repeat linter
22
#'
3-
#' Check that `while (TRUE)` is not used for infinite loops.
3+
#' Check that `while (TRUE)` is not used for infinite loops. While this is valid
4+
#' R code, using `repeat {}` is more explicit.
45
#'
56
#' @examples
67
#' # will produce lints

man/repeat_linter.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)