Skip to content

Commit

Permalink
Update index.md to fix typos and clarify get vs find behavior dif…
Browse files Browse the repository at this point in the history
…ferences

Saw that there was a typo while reading the docs myself and thought I should contribute. Change is minor (see commit message)
  • Loading branch information
KatWorkGit authored Apr 25, 2024
1 parent d7e3c2f commit be34de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1278,9 +1278,9 @@ get(selector: string): Omit<DOMWrapper<Element>, 'exists'>
**Details:**
It is similar to `find`, but `get` throws instead of returning a ErrorWrapper.
It is similar to `find`, but `get` throws an error if an element is not found while [`find`](#find) will return an ErrorWrapper.
As a rule of thumb, always use get except when you are asserting something doesn't exist. In that case use [`find`](#find).
As a rule of thumb, always use `get` except when you are asserting something doesn't exist. In that case use [`find`](#find).
`Component.vue`:
Expand Down

0 comments on commit be34de1

Please sign in to comment.