From 5dc4977e8d83039f879041dcc274db4dc44465c8 Mon Sep 17 00:00:00 2001 From: Calvin McLain <82966831+calvin-mclain@users.noreply.github.com> Date: Wed, 16 Mar 2022 17:53:14 -0400 Subject: [PATCH] [docs] Fix key-blocks instruction to be aligned with code ### Before submitting the PR, please make sure you do the following - [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs - [x] Prefix your PR title with `[feat]`, `[fix]`, `[chore]`, or `[docs]`. - [x] This message body should clearly illustrate what problems it solves. - [x] Ideally, include a test that fails without this PR but passes with it. This commit changes the instruction to match the code. ### Tests - Visit https://svelte.dev/tutorial/key-blocks - Notice the instruction on the left uses `transition:fade` while the code on the right uses `in:fly` --- site/content/tutorial/10-transitions/09-key-blocks/text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/tutorial/10-transitions/09-key-blocks/text.md b/site/content/tutorial/10-transitions/09-key-blocks/text.md index 05a54d592a..c634809c35 100644 --- a/site/content/tutorial/10-transitions/09-key-blocks/text.md +++ b/site/content/tutorial/10-transitions/09-key-blocks/text.md @@ -6,7 +6,7 @@ Key blocks destroy and recreate their contents when the value of an expression c ```html {#key value} -
{value}
+ {/key} ```