mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-06-18 05:28:37 +00: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:
+1
-2
@@ -619,8 +619,7 @@
|
||||
</BAD_CODE_SNIPPET>
|
||||
<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
|
||||
errors; and while most script engines support this, it is not part
|
||||
of ECMAScript. </p>
|
||||
errors. </p>
|
||||
<p>Use string concatenation instead:</p>
|
||||
<CODE_SNIPPET>
|
||||
var myString = 'A rather long string of English text, an error message ' +
|
||||
|
||||
Reference in New Issue
Block a user