doc/go_tutorial.html | 5 ++--- doc/go_tutorial.tmpl | 4 ++-- diff --git a/doc/go_tutorial.html b/doc/go_tutorial.html index 0b366bb2ba9e5a50bf999bed6e71b7781e4f11ea..8f6e07b06c57c6fe2e736106051a2bf26df28470 100644 --- a/doc/go_tutorial.html +++ b/doc/go_tutorial.html @@ -95,7 +95,7 @@

 $ 6g helloworld.go  # compile; object goes into helloworld.6
 $ 6l helloworld.6   # link; output goes into 6.out
-$ 6.out
+$ ./6.out
 Hello, world; or Καλημέρα κόσμε; or こんにちは 世界
 $
 
@@ -544,13 +544,12 @@ composite literal, as is done here in the return statement from newFile.

We can use the factory to construct some familiar, exported variables of type *File:

-

var (
     Stdin  = newFile(syscall.Stdin, "/dev/stdin")
     Stdout = newFile(syscall.Stdout, "/dev/stdout")
     Stderr = newFile(syscall.Stderr, "/dev/stderr")
 )
-
 

The newFile function was not exported because it's internal. The proper, diff --git a/doc/go_tutorial.tmpl b/doc/go_tutorial.tmpl index c170c25aa946fc9975606733b12af0b95b1a35cb..15f87ca4b29019ce7efb9b0bec3ff3810b62a065 100644 --- a/doc/go_tutorial.tmpl +++ b/doc/go_tutorial.tmpl @@ -87,7 +87,7 @@

 $ 6g helloworld.go  # compile; object goes into helloworld.6
 $ 6l helloworld.6   # link; output goes into 6.out
-$ 6.out
+$ ./6.out
 Hello, world; or Καλημέρα κόσμε; or こんにちは 世界
 $
 
@@ -470,7 +470,7 @@ composite literal, as is done here in the return statement from newFile.

We can use the factory to construct some familiar, exported variables of type *File:

-{{code "progs/file.go" `/var/` `/^.$/`}} +{{code "progs/file.go" `/var/` `/^\)/`}}

The newFile function was not exported because it's internal. The proper, exported factory to use is OpenFile (we'll explain that name in a moment):