diff options
| author | Robert Griesemer <gri@golang.org> | 2009-06-18 13:51:14 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2009-06-18 13:51:14 -0700 |
| commit | 30cb76471303d34be8bfc59145f0ae90de2da924 (patch) | |
| tree | ce7269e696c0be198de8017046cf62cf52b27317 | |
| parent | 3605ab507c6eb0761bd12d624e23801c42b1d0c3 (diff) | |
| download | golang-30cb76471303d34be8bfc59145f0ae90de2da924.tar.gz | |
raw strings may span multiple lines
R=r
DELTA=7 (2 added, 0 deleted, 5 changed)
OCL=30492
CL=30494
| -rw-r--r-- | doc/go_spec.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index 614f8af8c..9ffcb41a7 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -354,9 +354,10 @@ literals. <p> Raw string literals are character sequences between back quotes <code>``</code>. 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. </p> <p> Interpreted string literals are character sequences between double @@ -386,8 +387,9 @@ interpreted_string_lit = """ { unicode_value | byte_value } """ . </pre> <pre> -`abc` -`\n` +`abc` // same as "abc" +`\n +\n` // same as "\\n\n\\n" "\n" "" "Hello, world!\n" |
