Skip to content

Commit a20d094

Browse files
Don't use "lame" in documentation
1 parent 7f8acb8 commit a20d094

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

documentation/docs/03-template-syntax/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To render a [snippet](snippet), use a `{@render ...}` tag.
1717
The expression can be an identifier like `sum`, or an arbitrary JavaScript expression:
1818

1919
```svelte
20-
{@render (cool ? coolSnippet : lameSnippet)()}
20+
{@render (cool ? coolSnippet : boringSnippet)()}
2121
```
2222

2323
## Optional snippets

documentation/docs/03-template-syntax/18-class.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ If the value is an object, the truthy keys are added:
2727
</script>
2828
2929
<!-- results in `class="cool"` if `cool` is truthy,
30-
`class="lame"` otherwise -->
31-
<div class={{ cool, lame: !cool }}>...</div>
30+
`class="boring"` otherwise -->
31+
<div class={{ cool, boring: !cool }}>...</div>
3232
```
3333

3434
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
7777

7878
```svelte
7979
<!-- These are equivalent -->
80-
<div class={{ cool, lame: !cool }}>...</div>
81-
<div class:cool={cool} class:lame={!cool}>...</div>
80+
<div class={{ cool, boring: !cool }}>...</div>
81+
<div class:cool={cool} class:boring={!cool}>...</div>
8282
```
8383

8484
As with other directives, we can use a shorthand when the name of the class coincides with the value:
8585

8686
```svelte
87-
<div class:cool class:lame={!cool}>...</div>
87+
<div class:cool class:boring={!cool}>...</div>
8888
```
8989

9090
> [!NOTE] Unless you're using an older version of Svelte, consider avoiding `class:`, since the attribute is more powerful and composable.

0 commit comments

Comments
 (0)