diff options
Diffstat (limited to 'doc/progs/helloworld3.go')
| -rw-r--r-- | doc/progs/helloworld3.go | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/doc/progs/helloworld3.go b/doc/progs/helloworld3.go index 59aebc721..18fa594f0 100644 --- a/doc/progs/helloworld3.go +++ b/doc/progs/helloworld3.go @@ -4,12 +4,12 @@  package main -import fd "fd" +import file "file"  func main() {  	hello := []byte{'h', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', '\n'}; -	fd.Stdout.Write(hello); -	file, err := fd.Open("/does/not/exist",  0,  0); +	file.Stdout.Write(hello); +	file, err := file.Open("/does/not/exist",  0,  0);  	if file == nil {  		print("can't open file; err=",  err.String(),  "\n");  		sys.Exit(1); | 
