# std.net: add explicit error sets for IP parsing · gitcafe/zig

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

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

Visibility: public

Requested revision: 90a19f74116eb09e4711d845d08c011cb62b8cbf

Requested commit: 90a19f74116eb09e4711d845d08c011cb62b8cbf

Commit: 90a19f74116eb09e4711d845d08c011cb62b8cbf

Tree: 84c3c9cc793af76dacf69f7adbb53b53cd3f221b

Author: Artem Kolichenkov

Committer: GitHub

## Message

```
std.net: add explicit error sets for IP parsing

Inferred errors in switch statements prevented IP address parsing at comptime.
Adding explicit error sets fixes it.

Closes #18276
```

## Parents

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

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