x/website: the EBNF def of FunctionType
.Result
is wrong
#53746
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
website
Milestone
What is the URL of the page with the issue?
https://go.dev/ref/spec#Function_types
the definition in doc is
FunctionType = "func" Signature .
Signature = Parameters [ Result ] .
Result = Parameters | Type .
Parameters = "(" [ ParameterList [ "," ] ] ")" .
ParameterList = ParameterDecl { "," ParameterDecl } .
ParameterDecl = [ IdentifierList ] [ "..." ] Type .
the mistack is
the
Result
shouldnt be produce by= Parameters
. theParameters
support(... T)
but you couldnt write func signature likefunc () (...T)
The text was updated successfully, but these errors were encountered: