From 61235146b68a7c28b0313276447dd76d1a549e62 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sat, 31 Mar 2018 12:08:35 -0300 Subject: [PATCH] Nit: s//template string/template literal/g MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch leaves the `id` attribute value intact so that old links to this section don’t break. --- jsguide.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsguide.html b/jsguide.html index c931a69..3c043ef 100644 --- a/jsguide.html +++ b/jsguide.html @@ -1478,13 +1478,13 @@ string to avoid having to escape the quote.

Ordinary string literals may not span multiple lines.

-

5.6.2 Template strings

+

5.6.2 Template literals

-

Use template strings (delimited with `) over complex string +

Use template literals (delimited with `) over complex string concatenation, particularly if multiple string literals are involved. Template -strings may span multiple lines.

+literals may span multiple lines.

-

If a template string spans multiple lines, it does not need to follow the +

If a template literal spans multiple lines, it does not need to follow the indentation of the enclosing block, though it may if the added whitespace does not matter.