1
0
mirror of https://github.com/golang/go synced 2024-11-21 15:34:45 -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:
Brad Fitzpatrick 2012-03-20 16:50:51 -07:00
parent 4a59be0091
commit e5102b35f6

View File

@ -2711,11 +2711,11 @@ field for recoverable failures.
<pre>
for try := 0; try &lt; 2; try++ {
file, err = os.Open(filename)
file, err = os.Create(filename)
if err == nil {
return
}
if e, ok := err.(*os.PathError); ok &amp;&amp; e.Err == os.ENOSPC {
if e, ok := err.(*os.PathError); ok &amp;&amp; e.Err == syscall.ENOSPC {
deleteTempFiles() // Recover some space.
continue
}