1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 14:56:54 +02:00

[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

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
}