mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Remove a false claim about multi-line strings
The claim that multi-line strings are not part of ECMAScript is false. See the "LineContinuation" production in: http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4. Removed the false claim.
This commit is contained in:
parent
3c3c96b2c3
commit
d6fddbbf3e
|
@ -619,8 +619,7 @@
|
||||||
</BAD_CODE_SNIPPET>
|
</BAD_CODE_SNIPPET>
|
||||||
<p>The whitespace at the beginning of each line can't be safely stripped
|
<p>The whitespace at the beginning of each line can't be safely stripped
|
||||||
at compile time; whitespace after the slash will result in tricky
|
at compile time; whitespace after the slash will result in tricky
|
||||||
errors; and while most script engines support this, it is not part
|
errors. </p>
|
||||||
of ECMAScript. </p>
|
|
||||||
<p>Use string concatenation instead:</p>
|
<p>Use string concatenation instead:</p>
|
||||||
<CODE_SNIPPET>
|
<CODE_SNIPPET>
|
||||||
var myString = 'A rather long string of English text, an error message ' +
|
var myString = 'A rather long string of English text, an error message ' +
|
||||||
|
|
Loading…
Reference in New Issue
Block a user