Skip to content

Commit

Permalink
Fix gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
blang committed Jan 31, 2017
1 parent 41721d0 commit e296494
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ioutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ func ReadFile(fs Filesystem, filename string) ([]byte, error) {
}
}

// As initial capacity for readAll, use n + a little extra in case Size is
// zero, and to avoid another allocation after Read has filled the buffer.
// The readAll call will read into its allocated internal buffer cheaply. If
// the size was wrong, we'll either waste some space off the end or
// reallocate as needed, but in the overwhelmingly common case we'll get it
// just right.
// As initial capacity for readAll, use n + a little extra in case Size is
// zero, and to avoid another allocation after Read has filled the buffer.
// The readAll call will read into its allocated internal buffer cheaply. If
// the size was wrong, we'll either waste some space off the end or
// reallocate as needed, but in the overwhelmingly common case we'll get it
// just right.
return readAll(f, n+bytes.MinRead)
}

Expand Down

0 comments on commit e296494

Please sign in to comment.