diff --git a/src/core/shape/vertex.js b/src/core/shape/vertex.js
index 2cfd5b319d..6a5798b261 100644
--- a/src/core/shape/vertex.js
+++ b/src/core/shape/vertex.js
@@ -567,7 +567,7 @@ p5.prototype.endContour = function() {
/**
* The endShape() function is the companion to beginShape() and may only be
- * called after beginShape(). When endshape() is called, all of image data
+ * called after beginShape(). When endShape() is called, all of image data
* defined since the previous call to beginShape() is written into the image
* buffer. The constant CLOSE as the value for the MODE parameter to close
* the shape (to connect the beginning and the end).