Bläddra i källkod

docs improved

avkonst 12 år sedan
förälder
incheckning
0ca8ec6517
1 ändrade filer med 6 tillägg och 4 borttagningar
  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:
                 	<pre class="prettyprint">
 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>
                 	</td>