Commit d4f3185c authored by Russ Cox's avatar Russ Cox

spec: add () to method calls in examples

Since p.M is rejected (must call methods), use p.M(),
to keep the examples compiling.

Fixes #4441.

R=gri
CC=golang-dev
https://golang.org/cl/6854096
parent 54023a94
<!--{ <!--{
"Title": "The Go Programming Language Specification", "Title": "The Go Programming Language Specification",
"Subtitle": "Version of November 21, 2012", "Subtitle": "Version of November 26, 2012",
"Path": "/ref/spec" "Path": "/ref/spec"
}--> }-->
...@@ -2463,9 +2463,9 @@ p.z // (*p).z ...@@ -2463,9 +2463,9 @@ p.z // (*p).z
p.y // ((*p).T1).y p.y // ((*p).T1).y
p.x // (*(*p).T0).x p.x // (*(*p).T0).x
p.M2 // (*p).M2 p.M2() // (*p).M2()
p.M1 // ((*p).T1).M1 p.M1() // ((*p).T1).M1()
p.M0 // ((*p).T0).M0 p.M0() // ((*p).T0).M0()
</pre> </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