Skip to content

Commit a3c74ae

Browse files
Update Language/Structure/Control Structure/switchCase.adoc
Co-Authored-By: per1234 <[email protected]>
1 parent a85306e commit a3c74ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/Structure/Control Structure/switchCase.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Nothing
5555
[float]
5656
=== Note
5757

58-
If you need to declare one, or more, variables in a case you need to use curly brackets {} to define the scope specific to that case statement and define your variable within it.
58+
If you need to declare a variable in a case, use curly brackets {} to define a scope within the case statement to avoid a "crosses initialization of" compiler error.
5959
--
6060
// OVERVIEW SECTION ENDS
6161

0 commit comments

Comments
 (0)