diff --git a/R/outer_negation_linter.R b/R/outer_negation_linter.R index f9f5a6715..71dc7773e 100644 --- a/R/outer_negation_linter.R +++ b/R/outer_negation_linter.R @@ -1,6 +1,6 @@ #' Require usage of `!any(x)` over `all(!x)`, `!all(x)` over `any(!x)` #' -#' `any(!x)` is logically equivalent to `!any(x)`; ditto for the equivalence of +#' `any(!x)` is logically equivalent to `!all(x)`; ditto for the equivalence of #' `all(!x)` and `!any(x)`. Negating after aggregation only requires inverting #' one logical value, and is typically more readable. #' diff --git a/man/outer_negation_linter.Rd b/man/outer_negation_linter.Rd index 14260645f..d29f38ed3 100644 --- a/man/outer_negation_linter.Rd +++ b/man/outer_negation_linter.Rd @@ -7,7 +7,7 @@ outer_negation_linter() } \description{ -\code{any(!x)} is logically equivalent to \code{!any(x)}; ditto for the equivalence of +\code{any(!x)} is logically equivalent to \code{!all(x)}; ditto for the equivalence of \code{all(!x)} and \code{!any(x)}. Negating after aggregation only requires inverting one logical value, and is typically more readable. }