mirror of
https://github.com/golang/go
synced 2024-11-25 00:17:58 -07:00
doc: remove reference to deleted os.ENOSPC
R=golang-dev, gri, r, r CC=golang-dev https://golang.org/cl/5866046
This commit is contained in:
parent
4a59be0091
commit
e5102b35f6
@ -2711,11 +2711,11 @@ field for recoverable failures.
|
||||
|
||||
<pre>
|
||||
for try := 0; try < 2; try++ {
|
||||
file, err = os.Open(filename)
|
||||
file, err = os.Create(filename)
|
||||
if err == nil {
|
||||
return
|
||||
}
|
||||
if e, ok := err.(*os.PathError); ok && e.Err == os.ENOSPC {
|
||||
if e, ok := err.(*os.PathError); ok && e.Err == syscall.ENOSPC {
|
||||
deleteTempFiles() // Recover some space.
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user