From 57c81ef2570ac896fa5d830effbf2494d5cde3e5 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 15 Dec 2015 13:13:38 -0800 Subject: [PATCH] spec: be clearer about which parameter section can be variadic Fixes #13595. Change-Id: I870ddc97ea25b7f6f7a1bb1a78e5e4874fba1ddc Reviewed-on: https://go-review.googlesource.com/17871 Reviewed-by: Rob Pike --- doc/go_spec.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 9178ccd068..9c19b08d75 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -1114,7 +1114,7 @@ one unnamed result it may be written as an unparenthesized type.

-The final parameter in a function signature may have +The final incoming parameter in a function signature may have a type prefixed with .... A function with such a parameter is called variadic and may be invoked with zero or more arguments for that parameter. @@ -2090,7 +2090,7 @@ Receiver = Parameters .

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 T or *T (possibly using parentheses) where T is a type name. The type denoted by T is called the receiver base type; it must not be a pointer or interface type and -- 2.50.0