aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-12-14 21:52:41 -0800
committerRob Pike <r@golang.org>2011-12-14 21:52:41 -0800
commitc26ca912e500bd0e681cfda366d3b69f8769c9c2 (patch)
tree72655dd235955142f7966d7f069d187226dfee88
parent2ad8a9c507ede9621bb1cd1f8d02f6cdac7a9e88 (diff)
downloadgo-c26ca912e500bd0e681cfda366d3b69f8769c9c2.tar.gz
go-c26ca912e500bd0e681cfda366d3b69f8769c9c2.zip
spec: skip carriage returns in raw literals
This change guarantees that whether the line ending convention when the source is created includes carriage returns is irrelevant to the value of the string. See issue 680. The compilers do not yet implement this. R=golang-dev, adg, r, gri, rsc, iant CC=golang-dev https://golang.org/cl/5491043
-rw-r--r--doc/go_spec.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 945caba9d9..015404041b 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,5 +1,5 @@
<!-- title The Go Programming Language Specification -->
-<!-- subtitle Version of December 13, 2011 -->
+<!-- subtitle Version of December 14, 2011 -->
<!--
TODO
@@ -454,6 +454,8 @@ 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.
+Carriage returns inside raw string literals
+are discarded from the raw string value.
</p>
<p>
Interpreted string literals are character sequences between double