Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/learn/overview/15-errors-switch gives "no member named 'main'" #400

Open
softmoth opened this issue Sep 23, 2024 · 0 comments
Open

/learn/overview/15-errors-switch gives "no member named 'main'" #400

softmoth opened this issue Sep 23, 2024 · 0 comments

Comments

@softmoth
Copy link

An example in the Overview page is meant to show how switch requires exhaustive error checks. Instead, it shows that a main function is required.

https://ziglang.org/learn/overview/ (search for 15-errors-switch)

Suggested fix is to add a main function to the example source so that the intended error message (related to an unhandled error, I presume) is demonstrated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant