Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit a162b99

Browse files
committed
typo
1 parent 4ce5c66 commit a162b99

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

blog/grammar.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The only practical way to parse JavaScript is to write a recursive descent parse
4141
so let's learn all the quirks in the grammar before we shoot ourselves in the foot.
4242

4343
The list below starts simple and will become difficult to grasp,
44-
so please take grab a coffee and take your time.
44+
so please grab a coffee and take your time.
4545

4646
## Identifiers
4747

@@ -227,8 +227,12 @@ We probably have never written a single line of labelled statement, but it is le
227227
The following syntax is correct, it returns a labelled statement (not object literal).
228228

229229
```javascript
230-
<Foo bar={() => { baz: 'quaz' }} />
231-
// ^^^^^^^^^^^ `LabelledStatement`
230+
<Foo
231+
bar={() => {
232+
baz: "quaz";
233+
}}
234+
/>
235+
// ^^^^^^^^^^^ `LabelledStatement`
232236
```
233237

234238
---

0 commit comments

Comments
 (0)