Skip to content

Commit 9d7776b

Browse files
explicitly set arguments and name them
1 parent c05d5b1 commit 9d7776b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

R/rules-spacing.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ style_space_around_math_token <- function(strict, zero, one, pd_flat) {
3333
# We remove spaces for zero (e.g., around ^ in the tidyverse style guide)
3434
# even for strict = FALSE to be consistent with the : operator
3535
pd_flat %>%
36-
style_space_around_token(strict = TRUE, zero, 0L) %>%
37-
style_space_around_token(strict = strict, one, 1L)
36+
style_space_around_token(
37+
strict = TRUE, tokens = zero, level_before = 0L, level_after = 0L
38+
) %>%
39+
style_space_around_token(
40+
strict = strict, tokens = one, level_before = 1L, level_after = 1L
41+
)
3842
}
3943

4044
#' Set spacing of token to a certain level

0 commit comments

Comments
 (0)