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

Commit

Permalink
fix LabelledStatement span in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Apr 27, 2023
1 parent 94ee82c commit 84db702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ We probably have never written a single line of labelled statement, but it is le
The following syntax is correct, it returns a labelled statement (not object literal).

```javascript
<Foo bar={() => {baz: 'quaz'}} />
// ^^^^^^^^^^^^^ `LabelledStatement`
<Foo bar={() => { baz: 'quaz' }} />
// ^^^^^^^^^^^ `LabelledStatement`
```

---
Expand Down

0 comments on commit 84db702

Please sign in to comment.