]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go_spec: fix typos
authorShenghou Ma <minux.ma@gmail.com>
Tue, 14 May 2013 19:50:27 +0000 (03:50 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 14 May 2013 19:50:27 +0000 (03:50 +0800)
Fixes #5456.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9400044

doc/go_spec.html

index 3938ba3e6992c16d3cc750c63d67b85dbc659df7..d5701cbd6058b12a6c9782533f82083e16e2bf45 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of May 8, 2013",
+       "Subtitle": "Version of May 14, 2013",
        "Path": "/ref/spec"
 }-->
 
@@ -1969,9 +1969,9 @@ a <a href="#Terminating_statements">terminating statement</a>.
 </p>
 
 <pre>
-func findMarker(c <-chan int) int {
+func findMarker(c &lt;-chan int) int {
        for i := range c {
-               if x := <-c; isMarker(x) {
+               if x := &lt;-c; isMarker(x) {
                        return x
                }
        }
@@ -3240,7 +3240,7 @@ is also allowed and follows from the general rules above.
 </p>
 
 <pre>
-const c = 3 < 4            // c is the untyped bool constant true
+const c = 3 &lt; 4            // c is the untyped bool constant true
 
 type MyBool bool
 var x, y int
@@ -3550,7 +3550,7 @@ using a pointer will automatically dereference that pointer: <code>pt.Mv</code>
 
 <p>
 As with <a href="#Calls">method calls</a>, a reference to a non-interface method with a pointer receiver
-using an addressable value will automatically take the address of that value: <code>t.Mv</code> is equivalent to <code>(&amp;t).Mv</code>.
+using an addressable value will automatically take the address of that value: <code>t.Mp</code> is equivalent to <code>(&amp;t).Mp</code>.
 </p>
 
 <pre>