Skip to content

Commit 83b2f1f

Browse files
committed
Update p5.Vector.js
Fixed minor error in the documentation for Vector sub() to make it clearer that p5.Vector.sub() does not modify the original vectors.
1 parent 4fbbaf5 commit 83b2f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/p5.Vector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ p5.Vector = class {
701701
* let p1 = createVector(75, 75);
702702
* let p2 = createVector(50, 50);
703703
*
704-
* // Subtract with modifying the original vectors.
704+
* // Subtract without modifying the original vectors.
705705
* let p3 = p5.Vector.sub(p1, p2);
706706
*
707707
* // Draw the points.

0 commit comments

Comments
 (0)