Skip to content

Commit c54f5cb

Browse files
committed
Fix typo
1 parent 98b4fa8 commit c54f5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/replace.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ str_replace <- function(string, pattern, replacement) {
5757
}
5858

5959
switch(type(pattern),
60-
empty = stop("Empty `pattern`` not supported", call. = FALSE),
60+
empty = stop("Empty `pattern` not supported", call. = FALSE),
6161
bound = stop("Boundary `pattern` not supported", call. = FALSE),
6262
fixed = stri_replace_first_fixed(string, pattern, replacement,
6363
opts_fixed = opts(pattern)),

0 commit comments

Comments
 (0)