Skip to content

Commit 07e1d1c

Browse files
Merge pull request #558 from elenlefoll/patch-1
Corrected typo in example command strings.qmd
2 parents 8e0f35b + 92b7d51 commit 07e1d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/strings.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ see <- function(rx) str_view("abc ABC 123\t.!?\\(){}\n", rx)
4040
Also `str_like()`.
4141

4242
```{r}
43-
str(fruit, "a")
43+
str_detect(fruit, "a")
4444
```
4545
4646
- `str_starts(string, pattern, negate = FALSE)`: Detect the presence of a pattern match at the beginning of a string.

0 commit comments

Comments
 (0)