Skip to content

Commit fbed956

Browse files
authored
Merge pull request #968 from AnturGyffrous/main
Add word 'specify' to entries in switch...case parameter descriptions
2 parents a4bd5f1 + 8266537 commit fbed956

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Language/Structure/Control Structure/switchCase.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ switch (var) {
4747
`var`: an *integer* variable whose value to compare with various cases. Any integer data type is allowed*, such as `byte`, `char`, `int`, `long`.
4848
`label1`, `label2`: constants. Any integer data type here is also allowed.
4949

50-
*You can also use the `bool` data type when you just two switch cases.
50+
*You can also use the `bool` data type when you specify just two switch cases.
5151

5252
Note that you can also use negative values as input.
5353

@@ -72,10 +72,10 @@ Nothing
7272
----
7373
switch (var) {
7474
case 1:
75-
//do something when var equals 1
75+
// do something when var equals 1
7676
break;
7777
case 2:
78-
//do something when var equals 2
78+
// do something when var equals 2
7979
break;
8080
default:
8181
// if nothing else matches, do the default

0 commit comments

Comments
 (0)