翻译11.12部分内容

This commit is contained in:
dake
2015-11-02 17:17:45 +08:00
parent af7a9355ac
commit 6abfdb7f52
21 changed files with 256 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
# 用 defer 关闭文件
# 12.7 用 defer 关闭文件
`defer` 关键字(参看 6.4)对于在函数结束时关闭打开的文件非常有用,例如下面的代码片段: