Skip to content

Commit 9cc84ec

Browse files
committed
Merge pull request airbnb#152 from goldcaddy77/multi-line-use-80
Use 80 chars for consistency with comment above
2 parents 2a1c19a + 2737916 commit 9cc84ec

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,21 +199,15 @@
199199
var errorMessage = 'This is a super long error that was thrown because of Batman. When you stop to think about how Batman had anything to do with this, you would get nowhere fast.';
200200
201201
// bad
202-
var errorMessage = 'This is a super long error that \
203-
was thrown because of Batman. \
204-
When you stop to think about \
205-
how Batman had anything to do \
202+
var errorMessage = 'This is a super long error that was thrown because \
203+
of Batman. When you stop to think about how Batman had anything to do \
206204
with this, you would get nowhere \
207205
fast.';
208206
209-
210207
// good
211-
var errorMessage = 'This is a super long error that ' +
212-
'was thrown because of Batman. ' +
213-
'When you stop to think about ' +
214-
'how Batman had anything to do ' +
215-
'with this, you would get nowhere ' +
216-
'fast.';
208+
var errorMessage = 'This is a super long error that was thrown because ' +
209+
'of Batman. When you stop to think about how Batman had anything to do ' +
210+
'with this, you would get nowhere fast.';
217211
```
218212
219213
- When programmatically building up a string, use Array#join instead of string concatenation. Mostly for IE: [jsPerf](http://jsperf.com/string-vs-array-concat/2).

0 commit comments

Comments
 (0)