Skip to content

Commit e8d1f72

Browse files
Apply suggestions from code review
Co-authored-by: Simon H <[email protected]>
1 parent ddd48d4 commit e8d1f72

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sites/svelte-5-preview/src/routes/docs/content/01-api/03-snippets.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ Within the template, snippets are values just like any other. As such, they can
159159
As an authoring convenience, snippets declare directly _inside_ a component implicitly become props _on_ the component ([demo](/#H4sIAAAAAAAAE41Sy27bMBD8lYVcwHYrW4kBXxRFaP-htzgHSqQsojLJkuu2BqF_74qUrfhxCHQRh7MzO9z1SSM74ZL8zSeKHUSSJz-MSdIET2Y4uD-iQ0Fnp4-2HpDC1VYaLHdqh_JgtEX4yapOQGP1AebrLJzWsXD-QjQi1lo5JMZRooNXeBuwHXoYLHOYM2OoiXkKv_GUwzYFY2VNFxvo0xtqxRR9F-7z04X8fE-uW2GtnJQ3E_tpvYV-oL9Ti0U2hVJFjMMZslcfW-5DWj9zShojEFrBuLCLZR_9CmzLQCwy-psw8rxBgvkNhhpZd8F8NppE7Stbq_8u-GTKS8_XQ9Keqnl5BZP1AzTYP2bDV7i7_9hLEeda0iocNJeNFDzJ0R5Fn142JzA-uzsdBfLhldPxPdMhIPS0H1-M1cYtlnejwdBDfBXZjHXTFOg4BhuOtvTfrVDEmAZG2ew5ezYV-Ew2fVzVAivNTyPHzwSr29AlMAe8f6g-zuWDts-GusAmdBSkv3P7qnB4GpMEEHwsRPEPV6yTe5VDJxp8iXClLRmtnGG1VHva3oCPHQd9QJsrbFd1Kzu-2Khvz8uzZsXqX3urj4rnMBNCXNUG83zf6Yp1C2yXKdxA_KJjGOfRfb0Vh7MKDShEuV-M9_4_nq6svF4EAAA=)):
160160

161161
```svelte
162+
<!-- this is semantically the same as the above -->
162163
<Table data={fruits}>
163164
{#snippet header()}
164165
<th>fruit</th>

sites/svelte-5-preview/src/routes/docs/content/01-api/04-event-handlers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,5 @@ By deprecating `createEventDispatcher` and the `on:` directive in favour of call
176176
- remove the overhead of creating `CustomEvent` objects for events that may not even have listeners
177177
- add the ability to spread event handlers
178178
- add the ability to know which event handlers were provided to a component
179-
- add the ability to express whether a given event handler is required or optional (props with default values are considered optional, those without are considered required)
179+
- add the ability to express whether a given event handler is required or optional
180180
- increase type safety (previously, it was effectively impossible for Svelte to guarantee that a component didn't emit a particular event)

0 commit comments

Comments
 (0)