]> Cypherpunks repositories - gostls13.git/commitdiff
spec: correct typo in string conversion examples.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 11 Jul 2012 18:26:51 +0000 (20:26 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 11 Jul 2012 18:26:51 +0000 (20:26 +0200)
R=golang-dev, dave, r
CC=golang-dev, remy
https://golang.org/cl/6378046

doc/go_spec.html

index 0f5e803da2a3a6e0663720a81e69726ac599363c..94ab9bbe7fe29de8da6482f99db1046ddf2d6aa8 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of June 27, 2012",
+       "Subtitle": "Version of July 11, 2012",
        "Path": "/ref/spec"
 }-->
 
@@ -3516,7 +3516,7 @@ the range of valid Unicode code points are converted to <code>"\uFFFD"</code>.
 
 <pre>
 string('a')       // "a"
-string(-1)        // "\ufffd" == "\xef\xbf\xbd "
+string(-1)        // "\ufffd" == "\xef\xbf\xbd"
 string(0xf8)      // "\u00f8" == "ø" == "\xc3\xb8"
 type MyString string
 MyString(0x65e5)  // "\u65e5" == "日" == "\xe6\x97\xa5"