Skip to content

Commit f23a904

Browse files
authored
Change errors switch example into zig test output (#443)
This example was being built via zig build-exe but is written as a zig test example. The output on the website is an error about not having a main function instead of an error about not specifying all possibilities of an error in a switch.
1 parent 4fc2667 commit f23a904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/zig-code/features/15-errors-switch.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ fn charToDigit(c: u8) !u8 {
3232
return value;
3333
}
3434

35-
// exe=build_fail
35+
// test_safety=possibilities

0 commit comments

Comments
 (0)