Skip to content

Commit b7f99ee

Browse files
authored
Merge pull request basarat#272 from schaveyt/master
Update quickObjectReturn grammar - trivial
2 parents 30d752c + 8088283 commit b7f99ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tips/quickObjectReturn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var foo = () => {
77
bar: 123
88
};
99
```
10-
is a parsed as a *block* containing a *JavaScript Label* by JavaScript runtimes (cause of the JavaScript specification). If that doesn't make sense, don't worry, as you get a nice compiler error from TypeScript saying "unused label" anyways. You can fix it by surrounding the object literal with `()`:
10+
is parsed as a *block* containing a *JavaScript Label* by JavaScript runtimes (cause of the JavaScript specification). If that doesn't make sense, don't worry, as you get a nice compiler error from TypeScript saying "unused label" anyways. You can fix it by surrounding the object literal with `()`:
1111

1212
```ts
1313
var foo = () => ({

0 commit comments

Comments
 (0)