From be34de1967ea6ba9a5364c43a7b37958c4f94714 Mon Sep 17 00:00:00 2001 From: KatWorkGit <127438812+KatWorkGit@users.noreply.github.com> Date: Thu, 25 Apr 2024 09:46:24 -0400 Subject: [PATCH] Update index.md to fix typos and clarify `get` vs `find` behavior differences Saw that there was a typo while reading the docs myself and thought I should contribute. Change is minor (see commit message) --- docs/api/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/index.md b/docs/api/index.md index deaa0c573..6ceb998f6 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -1278,9 +1278,9 @@ get(selector: string): Omit, '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`: