Skip to content

Commit 4587411

Browse files
authored
🔧 fix: spelling and grammar in cookie (#245)
Small syntax and wording changes by native speaker.
1 parent 33bfd4b commit 4587411

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎docs/patterns/cookie.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To use Cookie attribute, you can either use one of the following:
5151
See [cookie attribute config](/patterns/cookie-signature#config) for more information.
5252

5353
### Assign Property
54-
You can get/set the property of a cookie as if it's a normal object, the reactivity model will sync the cookie value automatically.
54+
You can get/set the property of a cookie like any normal object, the reactivity model synchronizes the cookie value automatically.
5555

5656
```ts
5757
app.get('/', ({ cookie: { name } }) => {
@@ -65,7 +65,7 @@ app.get('/', ({ cookie: { name } }) => {
6565
```
6666

6767
## set
68-
**set** allow us to set update multiple cookie property all at once, by **reset all property** and overwrite it with a new value.
68+
**set** permits updating multiple cookie properties all at once through **reset all property** and overwrite the property with a new value.
6969

7070
```ts
7171
app.get('/', ({ cookie: { name } }) => {
@@ -77,10 +77,10 @@ app.get('/', ({ cookie: { name } }) => {
7777
```
7878

7979
## add
80-
Like **set**, **add** allow us to update multiple cookie property at once, but instead, will only overwrite the property defined instead of resetting.
80+
Like **set**, **add** allow us to update multiple cookie properties at once, but instead, will only overwrite the property defined instead of resetting.
8181

8282
## remove
83-
To remove a cookie, you can either use:
83+
To remove a cookie, you can use either:
8484
1. name.remove
8585
2. delete cookie.name
8686

@@ -113,7 +113,7 @@ app.get('/', ({ cookie: { name } }) => {
113113
```
114114

115115
## Nullable Cookie
116-
To handle nullable cookie value, you can use `t.Optional` on cookie name you want to be nullable.
116+
To handle nullable cookie value, you can use `t.Optional` on the cookie name you want to be nullable.
117117

118118
```ts
119119
app.get('/', ({ cookie: { name } }) => {

0 commit comments

Comments
 (0)