Merge pull request #78 from caimaoy/patch-2

Update ch5-09.md
pull/79/head
Xargin 2019-12-24 19:13:08 +08:00 committed by GitHub
commit 41b5d08c72
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)