avkonst 11 éve
szülő
commit
0ca8ec6517
1 módosított fájl, 6 hozzáadás és 4 törlés
  1. 6 4
      mainline/doc/home.html

+ 6 - 4
mainline/doc/home.html

@@ -331,11 +331,13 @@ file: __global__: comment
                 	the metric equal to 1 and the function has got it equal to 2:
                 	the metric equal to 1 and the function has got it equal to 2:
                 	<pre class="prettyprint">
                 	<pre class="prettyprint">
 class WeekClass {
 class WeekClass {
-  int isWeekend(int day) {
-    if (day == 6 || day == 7) {
-      return true;
+    int isWeekend(int day) {
+        if (day == SATURDAY ||
+            day == SUNDAY) {
+            return true;
+        }
+        return false;
     }
     }
-    return false;
 }
 }
 </pre>
 </pre>
                 	</td>
                 	</td>