Index: chrome/browser/resources/print_preview/print_preview_utils.js |
diff --git a/chrome/browser/resources/print_preview/print_preview_utils.js b/chrome/browser/resources/print_preview/print_preview_utils.js |
index a878d8687e5718a71b6003482b48c140282d4d45..439ede9f4ee369186b79bd38a950988412fbaf28 100644 |
--- a/chrome/browser/resources/print_preview/print_preview_utils.js |
+++ b/chrome/browser/resources/print_preview/print_preview_utils.js |
@@ -56,8 +56,8 @@ function areRangesEqual(array1, array2) { |
/** |
* Removes duplicate elements from |inArray| and returns a new array. |
* |inArray| is not affected. It assumes that |inArray| is already sorted. |
- * @param {Array.<number>} inArray The array to be processed. |
- * @return {Array.<number>} The array after processing. |
+ * @param {!Array.<number>} inArray The array to be processed. |
+ * @return {!Array.<number>} The array after processing. |
*/ |
function removeDuplicates(inArray) { |
var out = []; |
@@ -93,7 +93,7 @@ function removeDuplicates(inArray) { |
* Example: "-" is valid, assuming |totalPageCount| >= 1. |
* Example: "1-4dsf, 11" is invalid regardless of |totalPageCount|. |
* @param {string} pageRangeText The text to be checked. |
- * @param {number} totalPageCount The total number of pages. |
+ * @param {?number} totalPageCount The total number of pages. |
Aleksey Shlyapnikov
2014/09/19 18:54:42
Maybe {number=} makes more sense here?
Vitaly Pavlenko
2014/09/19 20:33:09
You are right. Done.
|
* @return {Array.<{from: number, to: number}>} An array of page range objects. |
*/ |
function pageRangeTextToPageRanges(pageRangeText, totalPageCount) { |
@@ -161,8 +161,8 @@ function pageRangeTextToPageList(pageRangeText, totalPageCount) { |
} |
/** |
- * @param {Array.<number>} pageList The list to be processed. |
- * @return {Array.<number>} The contents of |pageList| in ascending order and |
+ * @param {!Array.<number>} pageList The list to be processed. |
+ * @return {!Array.<number>} The contents of |pageList| in ascending order and |
* without any duplicates. |pageList| is not affected. |
*/ |
function pageListToPageSet(pageList) { |