diff --git a/doc/effective_go.html b/doc/effective_go.html index a7e6b7bdff1..1aeed4ad84e 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -504,7 +504,7 @@ the body ends in break, continue,

-f, err := os.Open(name, os.O_RDONLY, 0)
+f, err := os.Open(name)
 if err != nil {
     return err
 }
@@ -520,7 +520,7 @@ statements, the resulting code needs no else statements.
 

-f, err := os.Open(name, os.O_RDONLY, 0)
+f, err := os.Open(name)
 if err != nil {
     return err
 }
@@ -813,7 +813,7 @@ canonical examples are unlocking a mutex or closing a file.
 
 // Contents returns the file's contents as a string.
 func Contents(filename string) (string, os.Error) {
-    f, err := os.Open(filename, os.O_RDONLY, 0)
+    f, err := os.Open(filename)
     if err != nil {
         return "", err
     }
@@ -2675,7 +2675,7 @@ field for recoverable failures.
 
 
 for try := 0; try < 2; try++ {
-    file, err = os.Open(filename, os.O_RDONLY, 0)
+    file, err = os.Open(filename)
     if err == nil {
         return
     }