diff --git a/src/core/main.js b/src/core/main.js index 2e62bc661f..dd61bb6862 100644 --- a/src/core/main.js +++ b/src/core/main.js @@ -26,7 +26,7 @@ import * as constants from './constants'; * * @class p5 * @constructor - * @param {function} sketch a closure that can set optional preload(), + * @param {function(p5)} sketch a closure that can set optional preload(), * setup(), and/or draw() properties on the * given p5 instance * @param {HTMLElement} [node] element to attach canvas to