Skip to content

Commit 51b54dd

Browse files
authored
docs: add missing verb for cookies.set() explanation (sveltejs#437)
1 parent dae8e4b commit 51b54dd

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/03-sveltekit/04-headers-and-cookies/02-cookies

1 file changed

+1
-1
lines changed

content/tutorial/03-sveltekit/04-headers-and-cookies/02-cookies/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function load(+++{ cookies }+++) {
1717
}
1818
```
1919

20-
To set a cookie, you `cookies.set(name, value, options)`. It's strongly recommended that you explicitly configure the `path` when setting a cookie, since browsers' default behaviour — somewhat uselessly — is to set the cookie on the parent of the current path.
20+
To set a cookie, use `cookies.set(name, value, options)`. It's strongly recommended that you explicitly configure the `path` when setting a cookie, since browsers' default behaviour — somewhat uselessly — is to set the cookie on the parent of the current path.
2121

2222
```js
2323
/// file: src/routes/+page.server.js

0 commit comments

Comments
 (0)