mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
[go/en] disambiguate "close" in learnDefer() (#5038)
This commit is contained in:
parent
b4f23c3db6
commit
43fd63cd11
@ -323,7 +323,7 @@ func learnDefer() (ok bool) {
|
|||||||
defer fmt.Println("deferred statements execute in reverse (LIFO) order.")
|
defer fmt.Println("deferred statements execute in reverse (LIFO) order.")
|
||||||
defer fmt.Println("\nThis line is being printed first because")
|
defer fmt.Println("\nThis line is being printed first because")
|
||||||
// Defer is commonly used to close a file, so the function closing the
|
// 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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user