Merge pull request #570 from robbyt/patch-1

change the name from "Variable" to "Variadic"
This commit is contained in:
astaxie
2015-11-26 15:18:09 +08:00

View File

@@ -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) {}