From 63144ea2ac7908b12b9218266d99c279e156a0b0 Mon Sep 17 00:00:00 2001 From: Emir <40762681+doeppler@users.noreply.github.com> Date: Sat, 1 Dec 2018 22:44:45 +0100 Subject: [PATCH] Small contribution to switch statement (#23150) --- guide/english/c/switch/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/c/switch/index.md b/guide/english/c/switch/index.md index 824afe1700..e05549c5f3 100644 --- a/guide/english/c/switch/index.md +++ b/guide/english/c/switch/index.md @@ -6,7 +6,7 @@ title: Switch Case The switch statement is like a set of `if statements`. -It's a list of possibilities, with an action for each possibility, and an optional default action, in case nothing else evaluates to true. +It's a list of possibilities, with an action for each possibility, and an optional default action, in case nothing else evaluates to true. Sometimes we want to compare one input to many booleans and that is when we would prefer to use a switch statement instead of an `if statement`. We exit from the switch by `break`. If the `break` statement is not reached before the beginning of the next case, the execution will fall through and begin executing the code in the next case.