Reviewers: golang-dev_googlegroups.com,
Message:
Hello [email protected] (cc: [email protected]),
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 == "" {