Skip to content

Commit

Permalink
Fix rendering of example code.
Browse files Browse the repository at this point in the history
Work around a respec markdown bug by escaping * in example.

Addresses w3c#67
  • Loading branch information
rmcilroy committed Oct 20, 2017
1 parent 89c25ee commit c216c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -152,8 +152,8 @@ <h2>Introduction</h2>

function piStep() {
var r = 10;
var x = Math.random() * r * 2 - r;
var y = Math.random() * r * 2 - r;
var x = Math.random() &#42; r &#42; 2 - r;
var y = Math.random() &#42; r &#42; 2 - r;
return (Math.pow(x, 2) + Math.pow(y, 2) &lt; Math.pow(r, 2))
}
function refinePi(deadline) {
Expand Down

0 comments on commit c216c4b

Please sign in to comment.