Skip to content

Commit b11b613

Browse files
authored
Merge pull request #7024 from bobbykaz/issue-7023-vector-sub-documentation-fix
Fix 'p5.Vector.sub()' documentation mistakenly referencing 'add'ing
2 parents d18386e + f48e8a3 commit b11b613

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)