don't use f
This commit is contained in:
parent
fea62fe1ed
commit
ac5ced3fab
@ -18,7 +18,7 @@ func main() {
|
|||||||
// returns an error value that we don't know how to
|
// returns an error value that we don't know how to
|
||||||
// (or want to) handle. Here's an example of
|
// (or want to) handle. Here's an example of
|
||||||
// `panic`king if we get an unexpected error when creating a new file.
|
// `panic`king if we get an unexpected error when creating a new file.
|
||||||
f, err := os.Create("/tmp/file")
|
_, err := os.Create("/tmp/file")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user