mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 06:04:05 +00:00
Update README.md
Co-Authored-By: Aleksandr Hovhannisyan <aleksandrhovhannisyan@gmail.com>
This commit is contained in:
parent
3605215928
commit
d2307c8f36
|
@ -1217,7 +1217,7 @@ func main() {
|
||||||
closer := MyReadCloser{}
|
closer := MyReadCloser{}
|
||||||
|
|
||||||
closer.Read([]byte{1, 2, 3}) // works fine
|
closer.Read([]byte{1, 2, 3}) // works fine
|
||||||
closer.Close() // causes panic
|
closer.Close() // causes panic
|
||||||
closer.ReadCloser.Closer() // no panic
|
closer.ReadCloser.Closer() // no panic
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue