Update ch5-09.md

修改源码和文件出处
pull/78/head
Yue Chen 2019-12-10 17:12:31 +08:00 committed by GitHub
parent aaa7e5afae
commit 65ee267d20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -96,8 +96,9 @@ src/gopl.io/ch5/defer1/defer.go:10
为了方便诊断问题runtime包允许程序员输出堆栈信息。在下面的例子中我们通过在main函数中延迟调用printStack输出堆栈信息。
<u><i>gopl.io/ch5/defer2</i></u>
```Go
gopl.io/ch5/defer2
func main() {
defer printStack()
f(3)