diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
| commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
| tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /doc/progs/helloworld3.go | |
| parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
| download | golang-3e45412327a2654a77944249962b3652e6142299.tar.gz | |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'doc/progs/helloworld3.go')
| -rw-r--r-- | doc/progs/helloworld3.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/progs/helloworld3.go b/doc/progs/helloworld3.go index e065f02e6..adbcea324 100644 --- a/doc/progs/helloworld3.go +++ b/doc/progs/helloworld3.go @@ -13,8 +13,8 @@ import ( func main() { hello := []byte("hello, world\n") file.Stdout.Write(hello) - file, err := file.Open("/does/not/exist", 0, 0) - if file == nil { + f, err := file.Open("/does/not/exist", 0, 0) + if f == nil { fmt.Printf("can't open file; err=%s\n", err.String()) os.Exit(1) } |
