Skip to content

Commit f45fd18

Browse files
authored
Fix a doc regression for a quoted-attribute example
1 parent 3597ced commit f45fd18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/02-template-syntax/02-basic-markup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ All other attributes are included unless their value is [nullish](https://develo
5757
An expression might include characters that would cause syntax highlighting to fail in regular HTML, so quoting the value is permitted. The quotes do not affect how the value is parsed:
5858

5959
```svelte
60-
<button disabled={number !== 42}>...</button>
60+
<button disabled="{number !== 42}">...</button>
6161
```
6262

6363
When the attribute name and value match (`name={name}`), they can be replaced with `{name}`.

0 commit comments

Comments
 (0)