Skip to content

Commit

Permalink
Merge pull request #43 from rentiansheng/patch-1
Browse files Browse the repository at this point in the history
style:  fix error style
  • Loading branch information
lifei6671 authored May 23, 2021
2 parents 0daf50e + 40e55c6 commit 8889499
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion question/q021.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ func main() {
_, _ = ioutil.ReadAll(resp.Body)
}
fmt.Printf("此时goroutine个数= %d\n", runtime.NumGoroutine())
```


}
```

上面这道题在不执行`resp.Body.Close()`的情况下,泄漏了吗?如果泄漏,泄漏了多少个goroutine?

Expand Down

0 comments on commit 8889499

Please sign in to comment.