Skip to content

Commit 57de7e5

Browse files
authored
Merge pull request #7926 from leopardracer/main
Fix typos in documentation and comments
2 parents 69b617b + 11df112 commit 57de7e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/image/loading_displaying.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ function _sAssign(sVal, iVal) {
924924
* destination rectangle. This may have the effect of zooming into the
925925
* subsection.
926926
*
927-
* The tenth and eleventh paremeters, `xAlign` and `yAlign`, are also
927+
* The tenth and eleventh parameters, `xAlign` and `yAlign`, are also
928928
* optional. They determine how to align the fitted subsection. `xAlign` can
929929
* be set to either `LEFT`, `RIGHT`, or `CENTER`. `yAlign` can be set to
930930
* either `TOP`, `BOTTOM`, or `CENTER`. By default, both `xAlign` and `yAlign`

src/math/trigonometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ p5.prototype.degrees = angle => angle * constants.RAD_TO_DEG;
540540
*
541541
* background(200);
542542
*
543-
* // Caclulate the angle conversion.
543+
* // Calculate the angle conversion.
544544
* let deg = 45;
545545
* let rad = radians(deg);
546546
*

0 commit comments

Comments
 (0)