From 1c58fa91ccd665131415dd5e9338b75bdd12fe32 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Sun, 8 Aug 2021 12:43:43 -0400 Subject: [PATCH] [docs] various adjustments to template syntax docs (#6619) --- site/content/docs/02-template-syntax.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index 0d96b5bcc3f..8f3afce281b 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -350,7 +350,7 @@ If you don't care about the pending state, you can also omit the initial block. --- -If conversely you only want to show the error state, you can omit the `then` block. +Similarly, if you only want to show the error state, you can omit the `then` block. ```sv {#await promise catch error} @@ -515,7 +515,7 @@ The following modifiers are available: * `nonpassive` — explicitly set `passive: false` * `capture` — fires the handler during the *capture* phase instead of the *bubbling* phase * `once` — remove the handler after the first time it runs -* `self` — only trigger handler if event.target is the element itself +* `self` — only trigger handler if `event.target` is the element itself * `trusted` — only trigger handler if `event.isTrusted` is `true`. I.e. if the event is triggered by a user action. Modifiers can be chained together, e.g. `on:click|once|capture={...}`. @@ -670,7 +670,7 @@ Media elements (`