diff --git a/src/math/calculation.js b/src/math/calculation.js index 86d42798ef..5ed489190b 100644 --- a/src/math/calculation.js +++ b/src/math/calculation.js @@ -574,7 +574,7 @@ p5.prototype.mag = function(x, y) { * let x = map(mouseX, 0, 100, 0, 50); * * // Draw the bottom line. - * line(0, 75, 0, x); + * line(0, 75, x, 75); * } * *