diff --git a/website/versioned_docs/version-0.15.x/01-language-basics/09-switch.mdx b/website/versioned_docs/version-0.15.x/01-language-basics/09-switch.mdx index be515a14..ba6f0891 100644 --- a/website/versioned_docs/version-0.15.x/01-language-basics/09-switch.mdx +++ b/website/versioned_docs/version-0.15.x/01-language-basics/09-switch.mdx @@ -6,9 +6,9 @@ import SwitchExpression from "!!raw-loader!./09.switch-expression.zig"; # Switch Zig's `switch` works as both a statement and an expression. The types of all -branches must coerce to the type which is being switched upon. All possible -values must have an associated branch - values cannot be left out. Cases cannot -fall through to other branches. +branches must coerce to the same type. All possible values must have an +associated branch - values cannot be left out. Cases cannot fall through to +other branches. An example of a switch statement. The else is required to satisfy the exhaustiveness of this switch.