Skip to content

Commit 16f14c7

Browse files
committed
Clarify where named vector can be used
Fixes #499
1 parent 2fc8204 commit 16f14c7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

R/replace.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
#' in [stringi::about_search_regex]. Control options with
1111
#' [regex()].
1212
#'
13-
#' To perform multiple replacements in each element of `string`,
14-
#' pass supply a named vector (`c(pattern1 = replacement1)`).
13+
#' For `str_replace_all()` this can also be a named vector
14+
#' (`c(pattern1 = replacement1)`), in order to perform multiple replacements
15+
#' in each element of `string`.
1516
#'
1617
#' Match a fixed string (i.e. by comparing only bytes), using
1718
#' [fixed()]. This is fast, but approximate. Generally,

man/str_replace.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)