mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-19 03:29:26 +01:00
Doc: Improve the example given for fall throughs. (#11228)
This commit is contained in:
parent
9aef380c99
commit
ead5284476
@ -180,7 +180,7 @@ switch (a) {
|
|||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
DoSomething();
|
DoSomething();
|
||||||
/* FALL THROUGH */
|
FALLTHROUGH;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
DoMore();
|
DoMore();
|
||||||
@ -191,7 +191,7 @@ switch (a) {
|
|||||||
int r = 2;
|
int r = 2;
|
||||||
|
|
||||||
DoEvenMore(a);
|
DoEvenMore(a);
|
||||||
/* FALL THROUGH */
|
FALLTHROUGH;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 4: {
|
case 4: {
|
||||||
|
Loading…
Reference in New Issue
Block a user