]> Cypherpunks repositories - gostls13.git/commitdiff
fix typo
authorRob Pike <r@golang.org>
Sat, 14 Nov 2009 00:00:55 +0000 (16:00 -0800)
committerRob Pike <r@golang.org>
Sat, 14 Nov 2009 00:00:55 +0000 (16:00 -0800)
R=rsc
https://golang.org/cl/152128

doc/go_tutorial.txt

index b8e18dab8d57456d852547f0a0f1a420e4ef8eab..1e876d5ca0c004f3eab6d18d13ae487fa1711a90 100644 (file)
@@ -426,7 +426,7 @@ declaration on line 31; it declares "r" and "e" to hold the two values,
 both of type "int" (although you'd have to look at the "syscall" package
 to see that).  Finally, line 35 returns two values: a pointer to the new "File"
 and the error.  If "syscall.Open" fails, the file descriptor "r" will
-be negative and "NewFile" will return "nil".
+be negative and "newFile" will return "nil".
 
 About those errors:  The "os" 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