Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor typo in tip's article on defer #3176

Closed
MichaelTJones opened this issue Mar 3, 2012 · 1 comment
Closed

minor typo in tip's article on defer #3176

MichaelTJones opened this issue Mar 3, 2012 · 1 comment

Comments

@MichaelTJones
Copy link
Contributor

in http://tip.golang.org/doc/articles/defer_panic_recover.html
"This works, but there is a bug. If the second call to os.Open fails, the function
will return without closing the source file."

Actually, there is a first call to os.Open and a second call, this one to os.Create.
Better phrasing would be "This works, but there is a bug. If the call to os.Create
fails, the function will return without closing the source file."

I know this is minor, but as Go asymptotically nears perfection, the individual
improvements will decrease in magnitude.
@adg
Copy link
Contributor

adg commented Mar 4, 2012

Comment 1:

This issue was closed by revision b1b0b73.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants