Skip to content

Commit

Permalink
Merge pull request #112 from mwilbur/main
Browse files Browse the repository at this point in the history
Suggestions for small corrections
  • Loading branch information
pedropark99 authored Jan 31, 2025
2 parents efd5acd + 1dbb657 commit 06966a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chapters/03-structs.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ pub fn main() !void {

One very important aspect about switch statements in Zig
is that they must exhaust all existing possibilities.
In other words, all possible values that could be found inside the `order`
In other words, all possible values that could be found inside the `role`
object must be explicitly handled in this switch statement.

Since the `role` object have type `Role`, the only possible values to
Since the `role` object has type `Role`, the only possible values to
be found inside this object are `PM`, `SE`, `DPE`, `PO`, `DE`, `DA` and `KS`.
There are no other possible values to be stored in this `role` object.
Thus, the switch statements must have a combination (branch) for each one of these values.
Expand Down

0 comments on commit 06966a2

Please sign in to comment.