[go/en] disambiguate "close" in learnDefer() (#5038)

This commit is contained in:
Sergii Tkachenko 2024-08-21 08:08:48 -04:00 committed by GitHub
parent b4f23c3db6
commit 43fd63cd11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -323,7 +323,7 @@ func learnDefer() (ok bool) {
defer fmt.Println("deferred statements execute in reverse (LIFO) order.")
defer fmt.Println("\nThis line is being printed first because")
// Defer is commonly used to close a file, so the function closing the
// file stays close to the function opening the file.
// file stays near the function opening the file.
return true
}