From: Shenghou Ma Date: Tue, 14 May 2013 19:50:27 +0000 (+0800) Subject: doc/go_spec: fix typos X-Git-Tag: go1.2rc2~1526 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=df29cdd33d63c7fe452a32aab193df7f0815f7ef;p=gostls13.git doc/go_spec: fix typos Fixes #5456. R=golang-dev, r CC=golang-dev https://golang.org/cl/9400044 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 3938ba3e69..d5701cbd60 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -1969,9 +1969,9 @@ a terminating statement.

-func findMarker(c <-chan int) int {
+func findMarker(c <-chan int) int {
 	for i := range c {
-		if x := <-c; isMarker(x) {
+		if x := <-c; isMarker(x) {
 			return x
 		}
 	}
@@ -3240,7 +3240,7 @@ is also allowed and follows from the general rules above.
 

-const c = 3 < 4            // c is the untyped bool constant true
+const c = 3 < 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: pt.Mv
 
 

As with method calls, a reference to a non-interface method with a pointer receiver -using an addressable value will automatically take the address of that value: t.Mv is equivalent to (&t).Mv. +using an addressable value will automatically take the address of that value: t.Mp is equivalent to (&t).Mp.