Skip to content

Commit 41b34aa

Browse files
authored
fix: Changes wording from stop to pause (#1583)
Changes wording from stop to pause
1 parent 5f455e4 commit 41b34aa

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

apps/svelte.dev/content/tutorial/02-advanced-svelte/08-script-module/02-module-exports/+assets/app-b/src/lib/App.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import AudioPlayer, { stopAll } from './AudioPlayer.svelte';
2+
import AudioPlayer, { pauseAll } from './AudioPlayer.svelte';
33
import { tracks } from './tracks.js';
44
</script>
55

@@ -8,8 +8,8 @@
88
<AudioPlayer {...track} />
99
{/each}
1010

11-
<button onclick={stopAll}>
12-
stop all
11+
<button onclick={pauseAll}>
12+
pause all
1313
</button>
1414
</div>
1515

apps/svelte.dev/content/tutorial/02-advanced-svelte/08-script-module/02-module-exports/+assets/app-b/src/lib/AudioPlayer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script module>
22
let current;
33
4-
export function stopAll() {
4+
export function pauseAll() {
55
current?.pause();
66
}
77
</script>

apps/svelte.dev/content/tutorial/02-advanced-svelte/08-script-module/02-module-exports/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
title: Exports
33
---
44

5-
Anything exported from a `module` script block becomes an export from the module itself. Let's export a `stopAll` function:
5+
Anything exported from a `module` script block becomes an export from the module itself. Let's export a `pauseAll` function:
66

77
```svelte
88
/// file: AudioPlayer.svelte
99
<script module>
1010
let current;
1111
12-
+++ export function stopAll() {
12+
+++ export function pauseAll() {
1313
current?.pause();
1414
}+++
1515
</script>
1616
```
1717

18-
We can now import `stopAll` in `App.svelte`...
18+
We can now import `pauseAll` in `App.svelte`...
1919

2020
```svelte
2121
/// file: App.svelte
2222
<script>
23-
import AudioPlayer, +++{ stopAll }+++ from './AudioPlayer.svelte';
23+
import AudioPlayer, +++{ pauseAll }+++ from './AudioPlayer.svelte';
2424
import { tracks } from './tracks.js';
2525
</script>
2626
```
@@ -34,8 +34,8 @@ We can now import `stopAll` in `App.svelte`...
3434
<AudioPlayer {...track} />
3535
{/each}
3636
37-
+++ <button onclick={stopAll}>
38-
stop all
37+
+++ <button onclick={pauseAll}>
38+
pause all
3939
</button>+++
4040
</div>
4141
```

0 commit comments

Comments
 (0)