summaryrefslogtreecommitdiff
path: root/doc/progs/helloworld3.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/progs/helloworld3.go')
-rw-r--r--doc/progs/helloworld3.go3
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);
}
}