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

This commit is contained in:
居正
2021-12-07 23:23:42 +08:00
committed by GitHub
parent 39dbdb7094
commit fa957b3af5
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ func main() {
if inputError != nil { if inputError != nil {
fmt.Printf("An error occurred on opening the inputfile\n" + fmt.Printf("An error occurred on opening the inputfile\n" +
"Does the file exist?\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 return // exit the function on error
} }
defer inputFile.Close() defer inputFile.Close()

View File

@@ -17,7 +17,7 @@ func main() {
if inputError != nil { if inputError != nil {
fmt.Printf("An error occurred on opening the inputfile\n" + fmt.Printf("An error occurred on opening the inputfile\n" +
"Does the file exist?\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 return // exit the function on error
} }
defer inputFile.Close() defer inputFile.Close()