Skip to content

Commit b2618f4

Browse files
committed
Create consistency between docs and implementation for p5.Vector.toString
1 parent 7f4a991 commit b2618f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/math/p5.Vector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,14 @@ class Vector {
265265
* function setup() {
266266
* let v = createVector(20, 30);
267267
*
268-
* // Prints 'p5.Vector Object : [20, 30, 0]'.
268+
* // Prints 'vector[20, 30, 0]'.
269269
* print(v.toString());
270270
* }
271271
* </code>
272272
* </div>
273273
*/
274274
toString() {
275-
return `[${this._values.join(', ')}]`;
275+
return `vector[${this._values.join(', ')}]`;
276276
}
277277

278278
/**

0 commit comments

Comments
 (0)