mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-24 15:18:57 +00:00
Update ch7-03.md
This commit is contained in:
parent
3d3ebe7235
commit
33bf82d477
@ -34,7 +34,7 @@ func (*IntSet) String() string
|
|||||||
var _ = IntSet{}.String() // compile error: String requires *IntSet receiver
|
var _ = IntSet{}.String() // compile error: String requires *IntSet receiver
|
||||||
```
|
```
|
||||||
|
|
||||||
但是我们可以在一个IntSet值上调用这个方法:
|
但是我们可以在一个IntSet变量上调用这个方法:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
var s IntSet
|
var s IntSet
|
||||||
|
Loading…
Reference in New Issue
Block a user