]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: update example comment to check error on Close
authorIan Lance Taylor <iant@golang.org>
Sat, 19 Oct 2019 06:16:16 +0000 (23:16 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 Nov 2019 00:19:10 +0000 (00:19 +0000)
commit6cbd737c8e4a5aa5a8e85895c5ee6ff53a358622
tree5de01b3839066b2623a2a87594e2e2699b9b0c41
parent04e80fb2c9e502c011d367ad36307290df07cb41
runtime/pprof: update example comment to check error on Close

Programs should always check the error return of Close for a file opened
for writing. Update the example code in the comment to mention this.

Change-Id: I2ff6866ff1fe23b47c54268ac8e182210cc876c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/202137
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/pprof/pprof.go