diff options
| author | Russ Cox <rsc@golang.org> | 2009-05-08 15:21:41 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-05-08 15:21:41 -0700 |
| commit | 1ea895d9a458c9e4a91993924fcd39ce7f1dcabe (patch) | |
| tree | 5b8c80c41b4110b57cef1a0945350c2caf7557e2 /doc/progs/helloworld3.go | |
| parent | 206ea17d5fe6ad6d6492afe73ec2d72ce399a3fd (diff) | |
| download | golang-1ea895d9a458c9e4a91993924fcd39ce7f1dcabe.tar.gz | |
move things out of sys into os and runtime
R=r
OCL=28569
CL=28573
Diffstat (limited to 'doc/progs/helloworld3.go')
| -rw-r--r-- | doc/progs/helloworld3.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/progs/helloworld3.go b/doc/progs/helloworld3.go index 630c49232..01fc3e30a 100644 --- a/doc/progs/helloworld3.go +++ b/doc/progs/helloworld3.go @@ -7,6 +7,7 @@ package main import ( "file"; "fmt"; + "os"; ) func main() { @@ -15,6 +16,6 @@ func main() { file, err := file.Open("/does/not/exist", 0, 0); if file == nil { fmt.Printf("can't open file; err=%s\n", err.String()); - sys.Exit(1); + os.Exit(1); } } |
