mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-11-13 09:16:10 +08:00
改正错别字及微调格式 (#782)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# 16.3 发生错误时使用defer关闭一个文件
|
||||
# 16.3 发生错误时使用 defer 关闭一个文件
|
||||
|
||||
如果你在一个for循环内部处理一系列文件,你需要使用defer确保文件在处理完毕后被关闭,例如:
|
||||
|
||||
@@ -34,4 +34,4 @@ for _, file := range files {
|
||||
|
||||
- [目录](directory.md)
|
||||
- 上一节:[误用字符串](16.2.md)
|
||||
- 下一节:[何时使用new()和make()](16.4.md)
|
||||
- 下一节:[何时使用new()和make()](16.4.md)
|
||||
|
||||
Reference in New Issue
Block a user