Skip to content

Commit 2494208

Browse files
author
Rich Harris
committed
minor tweak
1 parent ca72e2c commit 2494208

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/01-svelte/05-events/04-component-events

1 file changed

+1
-1
lines changed

content/tutorial/01-svelte/05-events/04-component-events/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Then, add an `on:message` handler in `App.svelte`:
2828
<Inner +++on:message={handleMessage}+++ />
2929
```
3030

31-
> You can also try changing the event name to something else. For instance, change `dispatch('message')` to `dispatch('myevent')` in `Inner.svelte` and change the attribute name from `on:message` to `on:myevent` in `App.svelte`.
31+
> You can also try changing the event name to something else. For instance, change `dispatch('message')` to `dispatch('greet')` in `Inner.svelte` and change the attribute name from `on:message` to `on:greet` in `App.svelte`.

0 commit comments

Comments
 (0)