change the name from "Variable" to "Variadic"
This commit is contained in:
@@ -257,9 +257,9 @@ The above example returns two values without names -you have the option of namin
|
|||||||
return
|
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) {}
|
func myfunc(arg ...int) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user