# std.fs.File.Writer: fix drain implementation · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/435ccf706d09e269db08e070b9fa957e7b40f30c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 435ccf706d09e269db08e070b9fa957e7b40f30c

Requested commit: 435ccf706d09e269db08e070b9fa957e7b40f30c

Commit: 435ccf706d09e269db08e070b9fa957e7b40f30c

Tree: 829f6c0d7a79150fb4ad9dd9cff5e122546ac52b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.fs.File.Writer: fix drain implementation

it didn't account for data.len can no longer be zero

```

## Parents

- [77e839e28326d635e6a00513e26bfaf0076f22ec](https://git.cafe/gitcafe/zig/commit/77e839e28326d635e6a00513e26bfaf0076f22ec?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/435ccf706d09e269db08e070b9fa957e7b40f30c?format=markdown)
