Skip to content

Commit 1c99706

Browse files
adapt to namechange of remove_line_break_before_curly_opening().
1 parent 0e076d2 commit 1c99706

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vignettes/customizing_styler.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,11 @@ a <- function() # comments should remain EOL {
308308
The easiest way of taking care of that is not applying the rule if there is a
309309
comment before the token of interest, which can be checked for within your
310310
transformer function. The transformer function from the tidyverse style that
311-
removes line breaks before the curly opening bracket looks as follows:
311+
removes line breaks before the round closing bracket that comes after a curly
312+
brace looks as follows:
312313

313314
```{r}
314-
styler:::remove_line_break_before_curly_opening
315+
styler:::remove_line_break_before_round_closing_after_curly
315316
```
316317

317318
With our example function `set_line_break_before_curly_opening()` we don't need

0 commit comments

Comments
 (0)