Update ch7-03.md

This commit is contained in:
wahaha 2018-05-27 01:12:05 +08:00 committed by GitHub
parent 3d3ebe7235
commit 33bf82d477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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