Skip to content

Commit e2a117e

Browse files
committed
Updated vector docs to reflect true 2D vectors
1 parent a605d99 commit e2a117e

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
@@ -3241,7 +3241,7 @@ class Vector {
32413241
* // Create a p5.Vector object.
32423242
* let v = p5.Vector.random2D();
32433243
*
3244-
* // Prints "p5.Vector Object : [x, y, 0]" to the console
3244+
* // Prints "p5.Vector Object : [x, y]" to the console
32453245
* // where x and y are small random numbers.
32463246
* print(v.toString());
32473247
* }

0 commit comments

Comments
 (0)