Ver Fonte

修复代码一处拼写错误 (#813)

居正 há 4 anos atrás
pai
commit
fa957b3af5
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      eBook/12.2.md
  2. 1 1
      eBook/examples/chapter_12/fileinput.go

+ 1 - 1
eBook/12.2.md

@@ -21,7 +21,7 @@ func main() {
     if inputError != nil {
         fmt.Printf("An error occurred on opening the inputfile\n" +
             "Does the file exist?\n" +
-            "Have you got acces to it?\n")
+            "Have you got access to it?\n")
         return // exit the function on error
     }
     defer inputFile.Close()

+ 1 - 1
eBook/examples/chapter_12/fileinput.go

@@ -17,7 +17,7 @@ func main() {
 	if inputError != nil {
 		fmt.Printf("An error occurred on opening the inputfile\n" +
 			"Does the file exist?\n" +
-			"Have you got acces to it?\n")
+			"Have you got access to it?\n")
 		return // exit the function on error
 	}
 	defer inputFile.Close()