Fixes #1173
This commit is contained in:
Hadley Wickham 2022-12-06 18:03:26 -06:00
parent 37521f487a
commit e0d6b7036e
1 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ If you apply it to a whole document it'll give you the first match:
html |> html_element("p")
```
There's an important difference between `html_elements()` and `html_elements()` when you use a selector that doesn't match any elements.
There's an important difference between `html_element()` and `html_elements()` when you use a selector that doesn't match any elements.
`html_elements()` returns a vector of length 0, where `html_element()` returns a missing value.
This will be important shortly.
@ -262,7 +262,7 @@ To extract the name of each character, we use `html_element()`, because when app
characters |> html_element("b")
```
The distinction between `html_element()` and `html_element()` isn't important for name, but it is important for weight.
The distinction between `html_element()` and `html_elements()` isn't important for name, but it is important for weight.
We want to try and get the weight for each character
```{r}