Skip to content

Add word 'specify' to entries in switch...case parameter descriptions #968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Language/Structure/Control Structure/switchCase.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ switch (var) {
`var`: an *integer* variable whose value to compare with various cases. Any integer data type is allowed*, such as `byte`, `char`, `int`, `long`.
`label1`, `label2`: constants. Any integer data type here is also allowed.

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

Note that you can also use negative values as input.

Expand All @@ -72,10 +72,10 @@ Nothing
----
switch (var) {
case 1:
//do something when var equals 1
// do something when var equals 1
break;
case 2:
//do something when var equals 2
// do something when var equals 2
break;
default:
// if nothing else matches, do the default
Expand Down