Skip to content

Commit ccf8756

Browse files
authored
docs: clarify get vs find behavior differences (#2422)
1 parent d7e3c2f commit ccf8756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/api/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1278,9 +1278,9 @@ get(selector: string): Omit<DOMWrapper<Element>, 'exists'>
12781278
12791279
**Details:**
12801280
1281-
It is similar to `find`, but `get` throws instead of returning a ErrorWrapper.
1281+
It is similar to `find`, but `get` throws an error if an element is not found while [`find`](#find) will return an ErrorWrapper.
12821282
1283-
As a rule of thumb, always use get except when you are asserting something doesn't exist. In that case use [`find`](#find).
1283+
As a rule of thumb, always use `get` except when you are asserting something doesn't exist. In that case use [`find`](#find).
12841284
12851285
`Component.vue`:
12861286

0 commit comments

Comments
 (0)