Skip to content

Commit bce6ecf

Browse files
committed
Merge remote-tracking branch 'sveltejs/main' into translate-03-loading-data-into-japanese
2 parents 7022bc5 + ee38214 commit bce6ecf

File tree

2 files changed

+7
-3
lines changed
  • content/tutorial
    • 01-svelte/06-bindings/06-select-bindings
    • 02-sveltekit/05-api-routes/01-get-handlers

2 files changed

+7
-3
lines changed

content/tutorial/01-svelte/06-bindings/06-select-bindings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Select bindings
33
---
44

5-
We can also use `bind:value` with `<select>` elements. Update line 20:
5+
We can also use `bind:value` with `<select>` elements. Update line 32:
66

77
```svelte
88
<select bind:value={selected} on:change="{() => answer = ''}">

content/tutorial/02-sveltekit/05-api-routes/01-get-handlers/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export function GET() {
1212
const number = Math.ceil(Math.random() * 6);
1313

1414
return new Response(number, {
15-
'Content-Type': 'application/json'
15+
headers: {
16+
'Content-Type': 'application/json'
17+
}
1618
});
1719
}
1820
```
@@ -29,7 +31,9 @@ export function GET() {
2931
const number = Math.ceil(Math.random() * 6);
3032

3133
--- return new Response(number, {
32-
'Content-Type': 'application/json'
34+
headers: {
35+
'Content-Type': 'application/json'
36+
}
3337
});---
3438
+++ return json(number);+++
3539
}

0 commit comments

Comments
 (0)