diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 70fd21591577..1c06356a1f33 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -492,16 +492,15 @@ angular.mock.$IntervalProvider = function() { return promise; }; /** - * @ngdoc method - * @name $interval#cancel - * @description - * - * Clears the interval. - * - * @param {promise} The promise of the interval to cancel. - * - * @return {boolean} - */ + * @ngdoc method + * @name $interval#cancel + * + * @description + * Cancels a task associated with the `promise`. + * + * @param {number} promise Promise returned by the `$interval` function. + * @returns {boolean} Returns `true` if the task was successfully canceled. + */ $interval.cancel = function(promise) { if(!promise) return false; var fnIndex;