change the name from "Variable" to "Variadic"
This commit is contained in:
committed by
James Miranda
parent
5ce8b95280
commit
33c7ca4316
@@ -257,9 +257,9 @@ The above example returns two values without names -you have the option of namin
|
||||
return
|
||||
}
|
||||
|
||||
### Variable arguments
|
||||
### Variadic functions
|
||||
|
||||
Go supports variable arguments, which means you can give an uncertain numbers of argument to functions.
|
||||
Go supports functions with a variable number of arguments. These functions are called "variadic", which means the function allows an uncertain numbers of arguments.
|
||||
|
||||
func myfunc(arg ...int) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user