# langref: don't encourage printing to stderr in tests · gitcafe/zig

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

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

Visibility: public

Requested revision: 96bb1137c23688f01283be24ac9b52e1440afded

Requested commit: 96bb1137c23688f01283be24ac9b52e1440afded

Commit: 96bb1137c23688f01283be24ac9b52e1440afded

Tree: 51a20754b41561cec76344d92f6392f746578a86

Author: Alex Kladov

Committer: Alex Kladov

## Message

```
langref: don't encourage printing to stderr in tests

The rule: `pub fn main` owns file descriptors 0, 1, and 2. If you didn't
write `pub fn main()` it is, in general, not your business to print to
stderr.

```

## Parents

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

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