mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 07:34:06 +08:00
Update 16.5.md (#451)
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
|
||||
因此应该这样做:
|
||||
|
||||
`func findBiggest( listOfNumbers []int ) int {}`
|
||||
func findBiggest( listOfNumbers []int ) int {}
|
||||
|
||||
而不是:
|
||||
|
||||
`func findBiggest( listOfNumbers *[]int ) int {}`
|
||||
func findBiggest( listOfNumbers *[]int ) int {}
|
||||
|
||||
**当切片作为参数传递时,切记不要解引用切片。**
|
||||
|
||||
|
Reference in New Issue
Block a user