mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:33:04 +08:00
修改变长参数拼写错误 (#395)
This commit is contained in:
@@ -60,12 +60,12 @@ func min(a ...int) int {
|
||||
一个接受变长参数的函数可以将这个参数作为其它函数的参数进行传递:
|
||||
|
||||
```go
|
||||
function F1(s … string) {
|
||||
F2(s …)
|
||||
func F1(s ...string) {
|
||||
F2(s...)
|
||||
F3(s)
|
||||
}
|
||||
|
||||
func F2(s … string) { }
|
||||
func F2(s ...string) { }
|
||||
func F3(s []string) { }
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user