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