diff options
Diffstat (limited to 'doc/go_tutorial.html')
-rw-r--r-- | doc/go_tutorial.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/go_tutorial.html b/doc/go_tutorial.html index 201c503bb..9ed408d34 100644 --- a/doc/go_tutorial.html +++ b/doc/go_tutorial.html @@ -550,7 +550,7 @@ declaration on line 31; it declares <code>r</code> and <code>e</code> to hold th both of type <code>int</code> (although you'd have to look at the <code>syscall</code> package to see that). Finally, line 35 returns two values: a pointer to the new <code>File</code> and the error. If <code>syscall.Open</code> fails, the file descriptor <code>r</code> will -be negative and <code>NewFile</code> will return <code>nil</code>. +be negative and <code>newFile</code> will return <code>nil</code>. <p> About those errors: The <code>os</code> library includes a general notion of an error. It's a good idea to use its facility in your own interfaces, as we do here, for @@ -1279,7 +1279,7 @@ code that invokes the operation and responds to the request: 19 } </pre> <p> -Line 18 defines the name <code>binOp</code> to be a function taking two integers and +Line 14 defines the name <code>binOp</code> to be a function taking two integers and returning a third. <p> The <code>server</code> routine loops forever, receiving requests and, to avoid blocking due to |