Skip to content

Commit 1a72f58

Browse files
committed
Fix #4140 clear up vestigal error message
1 parent 344765f commit 1a72f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scale-expansion.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ expand_scale <- function(mult = 0, add = 0) {
6666
#'
6767
expand_range4 <- function(limits, expand) {
6868
if (!(is.numeric(expand) && length(expand) %in% c(2,4))) {
69-
abort("`expand` must be a numeric vector with 1 or 2 elements")
69+
abort("`expand` must be a numeric vector with 2 or 4 elements")
7070
}
7171

7272
if (all(!is.finite(limits))) {

0 commit comments

Comments
 (0)