diff --git a/src/math/p5.Vector.js b/src/math/p5.Vector.js index 1f567837ce..f54667f6ee 100644 --- a/src/math/p5.Vector.js +++ b/src/math/p5.Vector.js @@ -1694,8 +1694,8 @@ p5.Vector = class { * // Style the text. * textAlign(CENTER); * - * // Display the magnitude. - * let m = floor(v3.mag()); + * // Display the magnitude. The same as floor(v3.mag()); + * let m = floor(p5.Vector.dist(v1, v2)); * text(m, 50, 75); * } *