docs(ngMock.$interval): fix return description

Closes #6384
This commit is contained in:
Sadaoui Abderrahim
2014-02-21 03:21:54 -08:00
committed by Peter Bacon Darwin
parent fa5ca115ac
commit 7cd79b6f8f

View File

@@ -494,13 +494,12 @@ angular.mock.$IntervalProvider = function() {
/**
* @ngdoc method
* @name $interval#cancel
*
* @description
* Cancels a task associated with the `promise`.
*
* Clears the interval.
*
* @param {promise} The promise of the interval to cancel.
*
* @return {boolean}
* @param {number} promise A promise from calling the `$interval` function.
* @returns {boolean} Returns `true` if the task was successfully cancelled.
*/
$interval.cancel = function(promise) {
if(!promise) return false;