From ac5ced3fabab01b8dceda489ddcd6afa3b49007e Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Tue, 23 Oct 2012 11:34:37 -0400 Subject: [PATCH] don't use f --- examples/panic/panic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/panic/panic.go b/examples/panic/panic.go index 14d49b0..c06f3b6 100644 --- a/examples/panic/panic.go +++ b/examples/panic/panic.go @@ -18,7 +18,7 @@ func main() { // returns an error value that we don't know how to // (or want to) handle. Here's an example of // `panic`king if we get an unexpected error when creating a new file. - f, err := os.Create("/tmp/file") + _, err := os.Create("/tmp/file") if err != nil { panic(err) }