summaryrefslogtreecommitdiff
path: root/src/lib/strconv/fp_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-03-11 12:51:10 -0700
committerRuss Cox <rsc@golang.org>2009-03-11 12:51:10 -0700
commit58b0883da1bb400157f2cbd1c890f4f712403c4d (patch)
tree6700308658c711a896e1c4a352a5ad41e706b304 /src/lib/strconv/fp_test.go
parentdac7740a27a435fd647792160e9c75daf5889fe7 (diff)
downloadgolang-58b0883da1bb400157f2cbd1c890f4f712403c4d.tar.gz
Rename os.FD to os.File.
Make Fstat, Readdirnames, and Readdir methods on os.File. R=r DELTA=281 (79 added, 3 deleted, 199 changed) OCL=25891 CL=26130
Diffstat (limited to 'src/lib/strconv/fp_test.go')
-rw-r--r--src/lib/strconv/fp_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/strconv/fp_test.go b/src/lib/strconv/fp_test.go
index 7bc85a32c..33491fab2 100644
--- a/src/lib/strconv/fp_test.go
+++ b/src/lib/strconv/fp_test.go
@@ -94,12 +94,13 @@ func myatof32(s string) (f float32, ok bool) {
}
func TestFp(t *testing.T) {
- fd, err := os.Open("testfp.txt", os.O_RDONLY, 0);
+ f, err := os.Open("testfp.txt", os.O_RDONLY, 0);
if err != nil {
panicln("testfp: open testfp.txt:", err.String());
}
+ defer f.Close();
- b := bufio.NewBufRead(fd);
+ b := bufio.NewBufRead(f);
lineno := 0;
for {