Skip to content

Commit 31db921

Browse files
BNAndrasIsaacG
andauthored
Update concepts/variadic-functions/about.md
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
1 parent cce3df2 commit 31db921

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

concepts/variadic-functions/about.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# About
22

33
Typically, functions accept only a fixed number of arguments.
4-
Prefix the last parameter's type with `...` to accept any number of trailing arguments:
4+
However, if you prefix the last parameter's type with `...`, the function can accept any number of trailing arguments.
5+
This makes the last parameter a _variadic parameter_.
56

67
```go
78
func sum(nums ...int) int {

0 commit comments

Comments
 (0)