Commit 1d46fc44 authored by Robin Eklind's avatar Robin Eklind Committed by Russ Cox

spec: Correct typo in method expressions example.

Also, remove unnecessary whitespace.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6928045
parent a6701f26
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment