From f48e8a35e7d6410e9eec5301f7c111d94082fbb6 Mon Sep 17 00:00:00 2001 From: Bobby Kazimiroff Date: Tue, 7 May 2024 22:00:11 -0700 Subject: [PATCH] Fix 'sub()' documentation referencing 'add' --- src/math/p5.Vector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/p5.Vector.js b/src/math/p5.Vector.js index 195c8754df..d2dd4abef5 100644 --- a/src/math/p5.Vector.js +++ b/src/math/p5.Vector.js @@ -640,7 +640,7 @@ p5.Vector = class { * of numbers, as in `v.sub([1, 2, 3])`. * * If a value isn't provided for a component, it won't change. For - * example, `v.sub(4, 5)` adds 4 to `v.x`, 5 to `v.y`, and 0 to `v.z`. + * example, `v.sub(4, 5)` subtracts 4 from `v.x`, 5 from `v.y`, and 0 from `v.z`. * Calling `sub()` with no arguments, as in `v.sub()`, has no effect. * * The static version of `sub()`, as in `p5.Vector.sub(v2, v1)`, returns a new