diff --git a/Language/Structure/Control Structure/else.adoc b/Language/Structure/Control Structure/else.adoc index c50e33e1e..64ce1afe3 100644 --- a/Language/Structure/Control Structure/else.adoc +++ b/Language/Structure/Control Structure/else.adoc @@ -49,17 +49,14 @@ else { Below is an extract from a code for temperature sensor system [source,arduino] ---- -if (temperature >= 70) -{ - // Danger! Shut down the system +if (temperature >= 70) { + // Danger! Shut down the system. } -else if (temperature >= 60) // 60 <= temperature < 70 -{ - // Warning! User attention required +else if (temperature >= 60) { // 60 <= temperature < 70 + // Warning! User attention required. } -else // temperature < 60 -{ - // Safe! Continue usual tasks... +else { // temperature < 60 + // Safe! Continue usual tasks. } ----