# fix hang when returning from while loop · gitcafe/zig

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

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

Visibility: public

Requested revision: 706f72f1b47ace8c6c9eecde2682ac46389af1ca

Requested commit: 706f72f1b47ace8c6c9eecde2682ac46389af1ca

Commit: 706f72f1b47ace8c6c9eecde2682ac46389af1ca

Tree: 18700cad180b70e3a01406e0ffdaf6ed1e2aca69

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix hang when returning from while loop

also fixes duplicate error message for function missing
return type.

also makes guess number game use %void for main return type.

closes #58

```

## Parents

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

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