Skip to content

Commit 38bd170

Browse files
spenljharb
authored andcommitted
[guide] Update syntax in eol-last examples
1 parent 8c2df74 commit 38bd170

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,24 +2115,24 @@ Other Style Guides
21152115

21162116
```javascript
21172117
// bad
2118-
(function (global) {
2119-
// ...stuff...
2120-
})(this);
2118+
import { es6 } from './AirbnbStyleGuide';
2119+
// ...
2120+
export default es6;
21212121
```
21222122

21232123
```javascript
21242124
// bad
2125-
(function (global) {
2126-
// ...stuff...
2127-
})(this);↵
2125+
import { es6 } from './AirbnbStyleGuide';
2126+
// ...
2127+
export default es6;↵
21282128
21292129
```
21302130

21312131
```javascript
21322132
// good
2133-
(function (global) {
2134-
// ...stuff...
2135-
})(this);↵
2133+
import { es6 } from './AirbnbStyleGuide';
2134+
// ...
2135+
export default es6;↵
21362136
```
21372137

21382138
<a name="whitespace--chains"></a><a name="18.6"></a>

0 commit comments

Comments
 (0)