diff options
| author | Rob Pike <r@golang.org> | 2009-03-16 22:53:23 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2009-03-16 22:53:23 -0700 |
| commit | fff0c79311dfed21fed1f0445beaa628e4a4cb19 (patch) | |
| tree | a2d542b0910e356955c2f2fe4f57b5df48edffc4 /doc/progs/helloworld3.go | |
| parent | 834f8e784143f7cf18ea96ab4259edd021cd6a5c (diff) | |
| download | golang-fff0c79311dfed21fed1f0445beaa628e4a4cb19.tar.gz | |
change the tutorial to use File, file rather than FD, fd.
also make the default input for makehtml be go_tutorial.txt.
R=rsc
DELTA=176 (58 added, 58 deleted, 60 changed)
OCL=26374
CL=26374
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); |
