FAQ
Reviewers: golang-dev_googlegroups.com,

Message:
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com),

I'd like you to review this change to
https://code.google.com/p/go/


Description:
io/ioutil: use path instead of name to avoid confusion
caller of ioutil.TempFile() can use f.Name() to get "path" of
the temporary file, instead of just the "name" of the file.

Please review this at http://codereview.appspot.com/6649054/

Affected files:
M src/pkg/io/ioutil/tempfile.go


Index: src/pkg/io/ioutil/tempfile.go
===================================================================
--- a/src/pkg/io/ioutil/tempfile.go
+++ b/src/pkg/io/ioutil/tempfile.go
@@ -42,7 +42,7 @@
// for temporary files (see os.TempDir).
// Multiple programs calling TempFile simultaneously
// will not choose the same file. The caller can use f.Name()
-// to find the name of the file. It is the caller's responsibility to
+// to find the path of the file. It is the caller's responsibility to
// remove the file when no longer needed.
func TempFile(dir, prefix string) (f *os.File, err error) {
if dir == "" {

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 12, '12 at 5:53p
activeOct 13, '12 at 11:05a
posts5
users2
websitegolang.org

2 users in discussion

Minux Ma: 3 posts R: 2 posts

People

Translate

site design / logo © 2022 Grokbase