From 2a627da326089dcbe9e77cdc30a3a823a1c6689a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 16 May 2014 12:20:03 -0700 Subject: [PATCH] spec: clarify that newlines are kept in raw string literals Fixes #8007. LGTM=r R=gri, r CC=golang-codereviews https://golang.org/cl/91510044 --- doc/go_spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 8a7e8ec032..c8d6f362e5 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -471,7 +471,7 @@ string composed of the uninterpreted (implicitly UTF-8-encoded) characters between the quotes; in particular, backslashes have no special meaning and the string may contain newlines. -Carriage returns inside raw string literals +Carriage return characters ('\r') inside raw string literals are discarded from the raw string value.

-- 2.48.1