Skip to content

Commit a9f8e1e

Browse files
authored
corresed -> coerced in error message (#817)
1 parent c074f3a commit a9f8e1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/condense_control.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ condense_control <- function(x, ref) {
2626
rlang::abort(
2727
c(
2828
glue::glue(
29-
"Object of class `{class(x)[1]}` cannot be corresed to ",
29+
"Object of class `{class(x)[1]}` cannot be coerced to ",
3030
"object of class `{class(ref)[1]}`."
3131
),
3232
"The following arguments are missing:",

tests/testthat/_snaps/condense_control.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
condense_control(control_parsnip(), ctrl)
55
Condition
66
Error in `condense_control()`:
7-
! Object of class `control_parsnip` cannot be corresed to object of class `control_parsnip`.
7+
! Object of class `control_parsnip` cannot be coerced to object of class `control_parsnip`.
88
* The following arguments are missing:
99
* 'allow_par', and 'anotherone'
1010

0 commit comments

Comments
 (0)