From: Robert Griesemer Date: Thu, 18 Jun 2009 20:51:14 +0000 (-0700) Subject: raw strings may span multiple lines X-Git-Tag: weekly.2009-11-06~1375 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=db7a6221e924772dd426b6b5ad825f8a4732c753;p=gostls13.git raw strings may span multiple lines R=r DELTA=7 (2 added, 0 deleted, 5 changed) OCL=30492 CL=30494 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 614f8af8c7..9ffcb41a77 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -354,9 +354,10 @@ literals.

Raw string literals are character sequences between back quotes ``. Within the quotes, any character is legal except -newline and back quote. The value of a raw string literal is the -string composed of the uninterpreted bytes between the quotes; -in particular, backslashes have no special meaning. +back quote. The value of a raw string literal is the +string composed of the uninterpreted characters between the quotes; +in particular, backslashes have no special meaning and the string may +span multiple lines.

Interpreted string literals are character sequences between double @@ -386,8 +387,9 @@ interpreted_string_lit = """ { unicode_value | byte_value } """ .

-`abc`
-`\n`
+`abc`  // same as "abc"
+`\n
+\n`    // same as "\\n\n\\n"
 "\n"
 ""
 "Hello, world!\n"