Commits

urso committed 0c3298c

update example/basicuse.html to use code-tag instead of <p>

  • Participants
  • Parent commits 108e33c

Comments (0)

Files changed (1)

File documentation/example/basicuse.html

         define a qc.js property to check out some cases.
         </p>
 
-        <p class="code runme" id="negative-bad">
-        function intensify(n) {
-            return n + 2;
-        }
+        <code class="code runme" id="negative-bad">
+function intensify(n) {
+    return n + 2;
+}
 
-        declare("intensify grows by 2", [arbInt],
-            function(c, a) {
-                var result = intensify(a);
-                c.noteArg(result);
-                c.assert(Math.abs(a) + 2 == Math.abs(result));
-            });
-        </p>
+declare("intensify grows by 2", [arbInt],
+    function(c, a) {
+        var result = intensify(a);
+        c.noteArg(result);
+        c.assert(Math.abs(a) + 2 == Math.abs(result));
+    });
+        </code>
 
         <p>
         Obviously that was going to fail and as we saw, negative numbers trip
         do a better job?
         </p>
 
-        <p class="code runme" id="intensify-pass">
-        function intensify(n) {
-            if (n > 0) {
-                return n + 2;
-            } else {
-                return n - 2;
-            }
-        }
+        <code class="code runme" id="intensify-pass">
+function intensify(n) {
+    if (n > 0) {
+        return n + 2;
+    } else {
+        return n - 2;
+    }
+}
 
-        declare("intensify grows by 2", [arbInt],
-            function(c, a) {
-                var result = intensify(a);
-                c.noteArg(result);
-                c.assert(Math.abs(a) + 2 == Math.abs(result));
-            });
-        </p>
+declare("intensify grows by 2", [arbInt],
+    function(c, a) {
+        var result = intensify(a);
+        c.noteArg(result);
+        c.assert(Math.abs(a) + 2 == Math.abs(result));
+    });
+        </code>
 
     </body>
 </html>