Permalink
Browse files

GH-8: Fix logic mistake in example

See: #8
  • Loading branch information...
1 parent 0f8b535 commit b93125f28cba57e9e765f0575cc6f1a0395984b5 @felixge committed Apr 4, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 guide/style.pdc
View
@@ -328,11 +328,11 @@ function isPercentage(val) {
~~~ {.javascript}
function isPercentage(val) {
-  if (val < 0) {
-    if (val > 100) {
-      return false;
-    } else {
+  if (val >= 0) {
+    if (val < 100) {
      return true;
+    } else {
+      return false;
    }
  } else {
    return false;

0 comments on commit b93125f

Please sign in to comment.