aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSequoia McDowell2014-02-10 15:57:27 -0500
committerTobias Bosch2014-02-10 15:15:30 -0800
commit2dfbc083c518ce591610ec619127bc8441615df9 (patch)
tree0e1896da58a94ff8023291f0b7b6a87adec8edcf
parent27613fd50020e6c9fe36b7622eb881fb34ce7dc6 (diff)
downloadangular.js-2dfbc083c518ce591610ec619127bc8441615df9.tar.bz2
docs(concepts): Remove pointless `* 1`s
Closes #6206
-rw-r--r--docs/content/guide/concepts.ngdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/guide/concepts.ngdoc b/docs/content/guide/concepts.ngdoc
index 9581514d..4c870804 100644
--- a/docs/content/guide/concepts.ngdoc
+++ b/docs/content/guide/concepts.ngdoc
@@ -120,7 +120,7 @@ different currencies and also pay the invoice.
return this.convertCurrency(this.qty * this.cost, this.inCurr, outCurr);
};
this.convertCurrency = function convertCurrency(amount, inCurr, outCurr) {
- return amount * this.usdToForeignRates[outCurr] * 1 / this.usdToForeignRates[inCurr];
+ return amount * this.usdToForeignRates[outCurr] / this.usdToForeignRates[inCurr];
};
this.pay = function pay() {
window.alert("Thanks!");
@@ -207,7 +207,7 @@ Let's refactor our example and move the currency conversion into a service in an
};
function convert(amount, inCurr, outCurr) {
- return amount * usdToForeignRates[outCurr] * 1 / usdToForeignRates[inCurr];
+ return amount * usdToForeignRates[outCurr] / usdToForeignRates[inCurr];
}
});
</file>
@@ -336,7 +336,7 @@ The following example shows how this is done with Angular:
};
function convert(amount, inCurr, outCurr) {
- return amount * usdToForeignRates[outCurr] * 1 / usdToForeignRates[inCurr];
+ return amount * usdToForeignRates[outCurr] / usdToForeignRates[inCurr];
}
function refresh() {