]> Cypherpunks repositories - gostls13.git/commitdiff
spec: Add link to rune literals from string literals when talking about escape sequences.
authorRobin Eklind <r.eklind.87@gmail.com>
Wed, 3 Sep 2014 17:44:33 +0000 (10:44 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 3 Sep 2014 17:44:33 +0000 (10:44 -0700)
LGTM=gri
R=golang-codereviews, gobot, gri
CC=golang-codereviews
https://golang.org/cl/140750043

doc/go_spec.html

index eec1cdb7a729c85d043f115f9488740f45ef2306..e8bb35f0b0d1beb53ba6107650ac008565241cfb 100644 (file)
@@ -479,7 +479,7 @@ Interpreted string literals are character sequences between double
 quotes <code>&quot;&quot;</code>. The text between the quotes,
 which may not contain newlines, forms the
 value of the literal, with backslash escapes interpreted as they
-are in rune literals (except that <code>\'</code> is illegal and
+are in <a href="#Rune_literals">rune literals</a> (except that <code>\'</code> is illegal and
 <code>\"</code> is legal), with the same restrictions.
 The three-digit octal (<code>\</code><i>nnn</i>)
 and two-digit hexadecimal (<code>\x</code><i>nn</i>) escapes represent individual