diff options
| author | Eugene Wolfson | 2013-04-29 14:44:08 -0300 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-04-30 10:17:01 +0100 |
| commit | e351874a0aaf766127ee2bd0708ebe737536685e (patch) | |
| tree | 3cb9ff752e84deca30e564863e03949947e7ab02 /src/auto/injector.js | |
| parent | dcdf4fc78bb22fe040aa800cf37782419d561b1c (diff) | |
| download | angular.js-e351874a0aaf766127ee2bd0708ebe737536685e.tar.bz2 | |
docs($provide): fix parentheses in example
Diffstat (limited to 'src/auto/injector.js')
| -rw-r--r-- | src/auto/injector.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/auto/injector.js b/src/auto/injector.js index b3444219..ce68ef14 100644 --- a/src/auto/injector.js +++ b/src/auto/injector.js @@ -62,7 +62,7 @@ function annotate(fn) { } } else if (isArray(fn)) { last = fn.length - 1; - assertArgFn(fn[last], 'fn') + assertArgFn(fn[last], 'fn'); $inject = fn.slice(0, last); } else { assertArgFn(fn, 'fn', true); @@ -278,7 +278,7 @@ function annotate(fn) { * * beforeEach(module(function($provide) { * $provide.provider('greet', GreetProvider); - * }); + * })); * * it('should greet', inject(function(greet) { * expect(greet('angular')).toEqual('Hello angular!'); @@ -291,9 +291,7 @@ function annotate(fn) { * inject(function(greet) { * expect(greet('angular')).toEqual('Ahoj angular!'); * }); - * )}; - * - * }); + * }); * </pre> */ |
