From a20d09437cfd7cd021e8c4e0f6291a720165f557 Mon Sep 17 00:00:00 2001 From: Daniel Diekmeier Date: Wed, 25 Dec 2024 18:08:10 +0100 Subject: [PATCH] Don't use "lame" in documentation --- documentation/docs/03-template-syntax/07-@render.md | 2 +- documentation/docs/03-template-syntax/18-class.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/documentation/docs/03-template-syntax/07-@render.md b/documentation/docs/03-template-syntax/07-@render.md index ecdf5cc216..c5907f8dcf 100644 --- a/documentation/docs/03-template-syntax/07-@render.md +++ b/documentation/docs/03-template-syntax/07-@render.md @@ -17,7 +17,7 @@ To render a [snippet](snippet), use a `{@render ...}` tag. The expression can be an identifier like `sum`, or an arbitrary JavaScript expression: ```svelte -{@render (cool ? coolSnippet : lameSnippet)()} +{@render (cool ? coolSnippet : boringSnippet)()} ``` ## Optional snippets diff --git a/documentation/docs/03-template-syntax/18-class.md b/documentation/docs/03-template-syntax/18-class.md index 880a34e9ec..c1a55597d0 100644 --- a/documentation/docs/03-template-syntax/18-class.md +++ b/documentation/docs/03-template-syntax/18-class.md @@ -27,8 +27,8 @@ If the value is an object, the truthy keys are added: -
...
+ `class="boring"` otherwise --> +
...
``` If the value is an array, the truthy values are combined: @@ -77,14 +77,14 @@ Prior to Svelte 5.16, the `class:` directive was the most convenient way to set ```svelte -
...
-
...
+
...
+
...
``` As with other directives, we can use a shorthand when the name of the class coincides with the value: ```svelte -
...
+
...
``` > [!NOTE] Unless you're using an older version of Svelte, consider avoiding `class:`, since the attribute is more powerful and composable.