Skip to content

Commit f48e8a3

Browse files
authored
Fix 'sub()' documentation referencing 'add'
1 parent d18386e commit f48e8a3

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
@@ -640,7 +640,7 @@ p5.Vector = class {
640640
* of numbers, as in `v.sub([1, 2, 3])`.
641641
*
642642
* If a value isn't provided for a component, it won't change. For
643-
* example, `v.sub(4, 5)` adds 4 to `v.x`, 5 to `v.y`, and 0 to `v.z`.
643+
* example, `v.sub(4, 5)` subtracts 4 from `v.x`, 5 from `v.y`, and 0 from `v.z`.
644644
* Calling `sub()` with no arguments, as in `v.sub()`, has no effect.
645645
*
646646
* The static version of `sub()`, as in `p5.Vector.sub(v2, v1)`, returns a new

0 commit comments

Comments
 (0)