Update 12.6.md (#496)

将os.file修改为os.File
This commit is contained in:
Sarlor
2018-05-29 09:54:51 +08:00
committed by 无闻
parent f2867dd349
commit af8640d4d0

View File

@@ -22,7 +22,7 @@ func cat(f *os.File) {
} }
``` ```
上面的代码来自于 `cat2.go`,使用了 os 包中的 `os.file``Read` 方法;`cat2.go``cat.go` 具有同样的功能。 上面的代码来自于 `cat2.go`,使用了 os 包中的 `os.File``Read` 方法;`cat2.go``cat.go` 具有同样的功能。
示例 12.14 [cat2.go](examples/chapter_12/cat2.go) 示例 12.14 [cat2.go](examples/chapter_12/cat2.go)