From 58b0883da1bb400157f2cbd1c890f4f712403c4d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 11 Mar 2009 12:51:10 -0700 Subject: 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 --- src/lib/strconv/fp_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/strconv/fp_test.go') 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 { -- cgit v1.2.3