Skip to content

Commit

Permalink
spec: be clearer about which parameter section can be variadic
Browse files Browse the repository at this point in the history
Fixes golang#13595.

Change-Id: I870ddc97ea25b7f6f7a1bb1a78e5e4874fba1ddc
Reviewed-on: https://go-review.googlesource.com/17871
Reviewed-by: Rob Pike <[email protected]>
  • Loading branch information
griesemer committed Dec 15, 2015
1 parent 24a83d3 commit 57c81ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/go_spec.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of November 30, 2015",
"Subtitle": "Version of December 15, 2015",
"Path": "/ref/spec"
}-->

Expand Down Expand Up @@ -1114,7 +1114,7 @@ <h3 id="Function_types">Function types</h3>
</p>

<p>
The final parameter in a function signature may have
The final incoming parameter in a function signature may have
a type prefixed with <code>...</code>.
A function with such a parameter is called <i>variadic</i> and
may be invoked with zero or more arguments for that parameter.
Expand Down Expand Up @@ -2090,7 +2090,7 @@ <h3 id="Method_declarations">Method declarations</h3>

<p>
The receiver is specified via an extra parameter section preceding the method
name. That parameter section must declare a single parameter, the receiver.
name. That parameter section must declare a single non-variadic parameter, the receiver.
Its type must be of the form <code>T</code> or <code>*T</code> (possibly using
parentheses) where <code>T</code> is a type name. The type denoted by <code>T</code> is called
the receiver <i>base type</i>; it must not be a pointer or interface type and
Expand Down

0 comments on commit 57c81ef

Please sign in to comment.