]> Cypherpunks repositories - gostls13.git/commitdiff
spec: Correct typo in method expressions example.
authorRobin Eklind <r.eklind.87@gmail.com>
Tue, 11 Dec 2012 17:17:53 +0000 (12:17 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 11 Dec 2012 17:17:53 +0000 (12:17 -0500)
Also, remove unnecessary whitespace.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6928045

doc/go_spec.html

index 6f4e68cc9b18e41397933bd2a429faf2a87f0cf5..6e88d47f31458195db42f5463c008e27e8b5776f 100644 (file)
@@ -1000,7 +1000,7 @@ promoted methods are included in the method set of the struct as follows:
        <code>T</code>. The method set of <code>*S</code> also
        includes promoted methods with receiver <code>*T</code>.
        </li>
-       
+
        <li>
        If <code>S</code> contains an anonymous field <code>*T</code>,
        the method sets of <code>S</code> and <code>*S</code> both
@@ -3359,7 +3359,7 @@ these five invocations are equivalent:
 <pre>
 t.Mv(7)
 T.Mv(t, 7)
-(T).Mv(t, t)
+(T).Mv(t, 7)
 f1 := T.Mv; f1(t, 7)
 f2 := (T).Mv; f2(t, 7)
 </pre>