Skip to content

Commit 46cb316

Browse files
authored
Merge pull request #8748 from harshiltewari2004/fix-jsdoc-typos
Fix JSDoc typos:widhts->widths,coordiante->coordinate
2 parents c004b41 + c39a1c3 commit 46cb316

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function modeAdjust(a, b, c, d, mode) {
1616
if (mode === constants.CORNER) {
1717

1818
// CORNER mode already corresponds to a bounding box (top-left corner, width, height).
19-
// For negative widhts or heights, the absolute value is used.
19+
// For negative widths or heights, the absolute value is used.
2020
bbox = {
2121
x: a,
2222
y: b,

src/webgl/p5.RendererGL.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ p5.prototype.setAttributes = function (key, value) {
320320
* @param {Uint8Array|Float32Array|undefined} pixels An existing pixels array to reuse if the size is the same
321321
* @param {WebGLRenderingContext} gl The WebGL context
322322
* @param {WebGLFramebuffer|null} framebuffer The Framebuffer to read
323-
* @param {Number} x The x coordiante to read, premultiplied by pixel density
324-
* @param {Number} y The y coordiante to read, premultiplied by pixel density
323+
* @param {Number} x The x coordinate to read, premultiplied by pixel density
324+
* @param {Number} y The y coordinate to read, premultiplied by pixel density
325325
* @param {Number} width The width in pixels to be read (factoring in pixel density)
326326
* @param {Number} height The height in pixels to be read (factoring in pixel density)
327327
* @param {GLEnum} format Either RGB or RGBA depending on how many channels to read

0 commit comments

Comments
 (0)