aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Haggard2013-04-11 15:14:20 -0600
committerIgor Minar2013-04-11 15:05:16 -0700
commitd577c5def1b79fef0e4db2edea0aff65125976e0 (patch)
treea9d1823846098ea687779cde95d152647906d972
parenta4dd14952e3f19285a27c3799e0e889d057c34f0 (diff)
downloadangular.js-d577c5def1b79fef0e4db2edea0aff65125976e0.tar.bz2
docs: fix typos
-rw-r--r--src/Angular.js4
-rw-r--r--src/ngMock/angular-mocks.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 0c2dff78..6a2e95cc 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -674,7 +674,7 @@ function sliceArgs(args, startIndex) {
*
* @description
* Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
- * `fn`). You can supply optional `args` that are are prebound to the function. This feature is also
+ * `fn`). You can supply optional `args` that are prebound to the function. This feature is also
* known as [function currying](http://en.wikipedia.org/wiki/Currying).
*
* @param {Object} self Context which `fn` should be evaluated in.
@@ -1006,7 +1006,7 @@ function bindJQuery() {
}
/**
- * throw error of the argument is falsy.
+ * throw error if the argument is falsy.
*/
function assertArg(arg, name, reason) {
if (!arg) {
diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js
index 53db2e5b..eadd18c5 100644
--- a/src/ngMock/angular-mocks.js
+++ b/src/ngMock/angular-mocks.js
@@ -241,7 +241,7 @@ angular.mock.$ExceptionHandlerProvider = function() {
*
* @param {string} mode Mode of operation, defaults to `rethrow`.
*
- * - `rethrow`: If any errors are are passed into the handler in tests, it typically
+ * - `rethrow`: If any errors are passed into the handler in tests, it typically
* means that there is a bug in the application or test, so this mock will
* make these tests fail.
* - `log`: Sometimes it is desirable to test that an error is thrown, for this case the `log` mode stores an