mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-08-17 20:01:48 +00:00
fmt
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
```Go
|
||||
var f func(int) int
|
||||
f(3) // 此處f的值爲nil,會引起panic錯誤
|
||||
f(3) // 此處f的值爲nil, 會引起panic錯誤
|
||||
```
|
||||
|
||||
函數值可以與nil比較:
|
||||
|
Reference in New Issue
Block a user