Adding more type documentation.

This commit is contained in:
Neil Fraser
2015-07-13 15:03:22 -07:00
parent f737b3ea48
commit e0f90e6e33
32 changed files with 75 additions and 67 deletions

View File

@@ -395,7 +395,7 @@ Blockly.shortestStringLength = function(array) {
* Given an array of strings, return the length of the common prefix.
* Words may not be split. Any space after a word is included in the length.
* @param {!Array.<string>} array Array of strings.
* @param {?number} opt_shortest Length of shortest string.
* @param {number=} opt_shortest Length of shortest string.
* @return {number} Length of common prefix.
*/
Blockly.commonWordPrefix = function(array, opt_shortest) {
@@ -430,7 +430,7 @@ Blockly.commonWordPrefix = function(array, opt_shortest) {
* Given an array of strings, return the length of the common suffix.
* Words may not be split. Any space after a word is included in the length.
* @param {!Array.<string>} array Array of strings.
* @param {?number} opt_shortest Length of shortest string.
* @param {number=} opt_shortest Length of shortest string.
* @return {number} Length of common suffix.
*/
Blockly.commonWordSuffix = function(array, opt_shortest) {